-
Notifications
You must be signed in to change notification settings - Fork 13k
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
fix: inner attribute followed by outer attribute causing ICE #90267
fix: inner attribute followed by outer attribute causing ICE #90267
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon. Please see the contribution instructions for more information. |
r? @Aaron1011 |
This will cause incorrectly placed outer attributes to get re-ordered in some cases (e.g. @EliseZeroTwo Could you change the EDIT: Adding in a |
I had attempted to add I added a test for this though, it panics on the commit before mine and runs successfully after my commit. |
This comment has been minimized.
This comment has been minimized.
3255dc4
to
d4ad543
Compare
This comment has been minimized.
This comment has been minimized.
d4ad543
to
2a7f0cb
Compare
src/test/ui/parser/auxiliary/issue-89971-outer-attr-following-inner-attr-ice.rs
Show resolved
Hide resolved
2a7f0cb
to
7f0d43a
Compare
Thanks! @bors r+ |
📌 Commit 7f0d43a has been approved by |
…askrgr Rollup of 5 pull requests Successful merges: - rust-lang#90239 (Consistent big O notation in map.rs) - rust-lang#90267 (fix: inner attribute followed by outer attribute causing ICE) - rust-lang#90288 (Add hint for people missing `TryFrom`, `TryInto`, `FromIterator` import pre-2021) - rust-lang#90304 (Add regression test for rust-lang#75961) - rust-lang#90344 (Add tracking issue number to const_cstr_unchecked) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #87936, #88938, and #89971.
This removes the assertion that validates that there are no outer attributes following inner attributes. Where the inner attribute is invalid you get an actual error.