Skip to content

Parentheses notation should respect lifetime elision #18992

Closed

Description

@nikomatsakis

HRTB doesn't correctly implement lifetime elision for Fn() notation. See the test src/test/compile-fail/unboxed-closure-sugar-equiv.rs.

Activity

  1. nikomatsakis commented on Nov 16, 2014

    @nikomatsakis
    ContributorAuthor

    Nominating.

  2. pnkfelix commented on Nov 20, 2014

    @pnkfelix
    Contributor

    @alexcrichton notes that this can be fixed backwards compatibly, and @nikomatsakis agrees.

    P-high, not 1.0.

  3. nikomatsakis commented on Nov 20, 2014

    @nikomatsakis
    ContributorAuthor

    Well, sort of -- I mean lifetime elision broke code, but almost only bad code. The problem is that people can use transmute to satisfy the signature and then clients get to assume any lifetime they want.

  4. added a commit that references this issue on Dec 6, 2014
    b800ce1
  5. added a commit that references this issue on Dec 9, 2014
    63ef9e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions