Skip to content
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

Parse raw lifetimes #1729

Open
compiler-errors opened this issue Sep 6, 2024 · 0 comments
Open

Parse raw lifetimes #1729

compiler-errors opened this issue Sep 6, 2024 · 0 comments
Labels

Comments

@compiler-errors
Copy link
Contributor

In rust-lang/rust#126452, T-lang decided that we should treat 'r#lifetime as "raw lifetime" syntax and reserve 'prefix#lifetime, (retroactively) beginning in edition 2021 as an extension of the work around reserving identifier prefixes in Rust's RFC 3101.

This is mostly motivated by wanting to give users a way to move off of 'gen lifetimes since gen is a reserved keyword in edition 2024, and we don't allow keyword lifetimes in Rust.

Syn should probably handle this too.

@dtolnay dtolnay added the syntax label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants