We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As of nightly-2024-07-18, rustc has begin rejecting code such as the following, which used to parse successfully. rust-lang/rust#126762
#[cfg(any())] fn f<'ref>() {}
error: lifetimes cannot use keyword names --> src/main.rs:2:6 | 2 | fn f<'ref>() {} | ^^^^
If this is no longer valid Rust syntax, syn should reject it too.
The text was updated successfully, but these errors were encountered:
Rustc still allows keyword lifetimes in macro input, so the Parse impl for syn::Lifetime probably needs to continue to allow them too.
fn main() { println!("{}", stringify!('ref)); }
But syntax tree uses of Lifetime, such as in GenericParam, can begin rejecting these.
Sorry, something went wrong.
No branches or pull requests
As of nightly-2024-07-18, rustc has begin rejecting code such as the following, which used to parse successfully. rust-lang/rust#126762
If this is no longer valid Rust syntax, syn should reject it too.
The text was updated successfully, but these errors were encountered: