Open dtolnay opened 4 months ago
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.
As of nightly-2024-07-18, rustc has begin rejecting code such as the following, which used to parse successfully. https://github.com/rust-lang/rust/pull/126762
If this is no longer valid Rust syntax, syn should reject it too.