-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
ICE with macro_rules! inside macro_rules! #10536
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Still an issue. (revision 6720977) #[feature(macro_rules)];
fn main() {
assert!({ macro_rules! bar( () => (5)) });
} |
Wow! Didn't see this. Thanks for bringing this to my attention. |
visiting for triage. Still reproducible. |
Trivial reproduction: pub fn main() {
assert!({foo! bar})
} Backtrace is a bit different between this and the |
lilyball
added a commit
to lilyball/rust
that referenced
this issue
Jul 2, 2014
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Apr 6, 2023
Add suggestions to `extra_unused_type_parameters` Change the `extra_unused_type_parameters` lint to provide machine applicable suggestions rather than just help messages. Exception to this are cases when any unused type parameters appear bounded in where clauses - for now I've deemed these cases unfixable and separated them out. Future work might be able to provide suggestions in these cases. Also, added a test case for the `avoid_breaking_exported_api` config option. r? `@flip1995` changelog: [`extra_unused_type_parameters`]: Now provides fixable suggestions.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
results in:
This works if foo! is used at global scope.
Tested on 2c9e56f.
The text was updated successfully, but these errors were encountered: