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
I’m working on a fix. I don’t think this needs an RFC—it’s clearly a bug (it doesn’t work everywhere: type Foo<'a T> = &'a T; doesn’t work) and I doubt much code will be relying on it.
Activity
aturon commentedon Jan 6, 2015
cc @cmr
bombless commentedon Apr 15, 2015
I'm not sure if it is a bug or a feature.
It seems that we can always omit the comma between lifetime bounds and type arguments.
bombless commentedon Apr 15, 2015
Now I can imagine we may even need a RFC to enforce that comma.
bombless commentedon Apr 17, 2015
We actually have code that use this "feature", see https://github.com/rust-lang/rust/blob/master/src/librustc_typeck/check/method/suggest.rs#L367
ftxqxd commentedon Apr 17, 2015
I’m working on a fix. I don’t think this needs an RFC—it’s clearly a bug (it doesn’t work everywhere:
type Foo<'a T> = &'a T;
doesn’t work) and I doubt much code will be relying on it.bombless commentedon Apr 17, 2015
Hmm I already made a patch.. waiting for compiling and
make check
.bombless commentedon Apr 17, 2015
ftxqxd commentedon Apr 17, 2015
Ah OK, you can submit your patch, then. I haven’t even got mine working yet.
Fix rust-lang#20616
17 remaining items