Skip to content

Commit 7402eb0

Browse files
committed
fix: inner attribute followed by outer attribute causing ICE
1 parent 235d985 commit 7402eb0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

compiler/rustc_ast/src/tokenstream.rs

-6
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,6 @@ impl AttrAnnotatedTokenStream {
221221
for attr in &data.attrs {
222222
match attr.style {
223223
crate::AttrStyle::Outer => {
224-
assert!(
225-
inner_attrs.len() == 0,
226-
"Found outer attribute {:?} after inner attrs {:?}",
227-
attr,
228-
inner_attrs
229-
);
230224
outer_attrs.push(attr);
231225
}
232226
crate::AttrStyle::Inner => {

0 commit comments

Comments
 (0)