-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
"0_DISCRIMINANT"
is not a valid identifier
#98158
Comments
Reduced example: #[derive(strum_macros::FromRepr)]
pub enum Tinyint {
_0,
} These lines invoked by use proc_macro::{Ident, Span, TokenStream};
#[proc_macro]
pub fn example(_: TokenStream) -> TokenStream {
Ident::new("0_DISCRIMINANT", Span::call_site());
TokenStream::new()
} Duplicate of #59998 |
This doesn't seem like a rustc bug, since |
@compiler-errors: it still shouldn't ICE though; but I think that's a dupe of the issue mentioned above? |
Related / dupe issues #94913 #59998 Currently related line:
|
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: