You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parentheses notation should respect lifetime elision #18992
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.
Activity
nikomatsakis commentedon Nov 16, 2014
Nominating.
pnkfelix commentedon Nov 20, 2014
@alexcrichton notes that this can be fixed backwards compatibly, and @nikomatsakis agrees.
P-high, not 1.0.
nikomatsakis commentedon Nov 20, 2014
Well, sort of -- I mean lifetime elision broke code, but almost only bad code. The problem is that people can use
transmuteto satisfy the signature and then clients get to assume any lifetime they want.Implement lifetime elision for Foo(...) -> ... type sugar.
rollup merge of rust-lang#19589: huonw/unboxed-closure-elision