Skip to content

docs: named lifetimes #13106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 26, 2014
Merged

docs: named lifetimes #13106

merged 2 commits into from
Mar 26, 2014

Conversation

noam87
Copy link

@noam87 noam87 commented Mar 23, 2014

* Include tip given by Leo Testard in mailing list about labeled `break`
and `continue`:
https://mail.mozilla.org/pipermail/rust-dev/2014-March/009145.html
* cross-reference named lifetimes in tutorial -> lifetimes guide
* Broke named lifetimes section into two sub-sections.
* Added mention of `'static` lifetime.
}
}
~~~

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you expand this section and also mention that for-loop lables are hygienic? An example here: https://github.com/mozilla/rust/blob/master/src/test/run-pass/hygienic-labels.rs

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flaper87 Cool, had to read on that subject, hope I didn't make any mistakes. (Added it to the macros guide.)

* Note on while loop not supporting named breaks.
* Note on hygienic macros (and example of such within loops)
bors added a commit that referenced this pull request Mar 26, 2014
* Include tip given by Leo Testard in mailing list about labeled `break`
and `continue`:
https://mail.mozilla.org/pipermail/rust-dev/2014-March/009145.html
* cross-reference named lifetimes in tutorial -> lifetimes guide
* Broke named lifetimes section into two sub-sections.
* Added mention of `'static` lifetime.
@bors bors closed this Mar 26, 2014
@bors bors merged commit 4b224af into rust-lang:master Mar 26, 2014
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 7, 2024
…swij

Don't trigger `const_is_empty` for inline const assertions

Close rust-lang#13106

Considered case was described [here](rust-lang/rust-clippy#13114 (comment))

changelog: [`const_is_empty`]: skip const_is_empty for inline const assertions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants