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
The grammar in the reference for loop (http://doc.rust-lang.org/reference.html#infinite-loops) uses the word "lifetime" to describe the label, but given that "lifetime" is term that means something very different, it's a little confusing.
The text was updated successfully, but these errors were encountered:
steveklabnik
added
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
A-docs
and removed
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
labels
Oct 2, 2014
Yeah, I just noticed that the parser function is called token_if_lifetime, but "git grep lifetime" shows a lot more usage of "lifetime" in terms of the borrow checker.
Given that this name is currently the correct one, I'm giving this a close. If we have a specific way to improve this, we can entertain the notion, but right now, that's the name.
The grammar in the reference for
loop
(http://doc.rust-lang.org/reference.html#infinite-loops) uses the word "lifetime" to describe the label, but given that "lifetime" is term that means something very different, it's a little confusing.Additionally, judging by https://github.com/rust-lang/rust/blob/master/src/libsyntax/parse/parser.rs#L2162-L2176, for loops and while loops also support labels, but that isn't mentioned for them.
The text was updated successfully, but these errors were encountered: