Skip to content

Commit

Permalink
fix: inner attribute followed by outer attribute causing ICE
Browse files Browse the repository at this point in the history
  • Loading branch information
EliseZeroTwo committed Oct 25, 2021
1 parent 235d985 commit 7402eb0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions compiler/rustc_ast/src/tokenstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,6 @@ impl AttrAnnotatedTokenStream {
for attr in &data.attrs {
match attr.style {
crate::AttrStyle::Outer => {
assert!(
inner_attrs.len() == 0,
"Found outer attribute {:?} after inner attrs {:?}",
attr,
inner_attrs
);
outer_attrs.push(attr);
}
crate::AttrStyle::Inner => {
Expand Down

0 comments on commit 7402eb0

Please sign in to comment.