Uh oh!
There was an error while loading. Please reload this page.
Metavariables can be keywords - #863
Conversation
ehuss
commented
Jul 29, 2020
Thanks! Do you happen to know the history here? It looks like this changed in 1.17 (though there weren't any notes about it). I'm guessing it was via rust-lang/rust#39419? It looks like this also allows raw identifiers. Example: macro_rules! foo {($r#fn:expr) => {$r#fn};}which seems a little odd to me. 🤷 Maybe the "identifiers" page should have a production for whatever "ident or keyword or raw keyword" should be called? Dunno if this is actually intended. |
jonas-schievink
commented
Jul 29, 2020
I have no idea about the history here, sorry. I just noticed that rust-analyzer does some gymnastics to also allow keywords here, and realized that rustc also allows them. |
jonas-schievink
commented
Aug 11, 2020
Is there any place in Rust where a normal ident is allowed but a raw ident isn't? |
ehuss
commented
Aug 11, 2020
|
mattheww
commented
Sep 6, 2023
This change was later made in #1130. |
ehuss
commented
Sep 6, 2023
Indeed, I think this can be closed, thanks! |
No description provided.