From 7402eb001b7a49151b704d129be19ed325d2be72 Mon Sep 17 00:00:00 2001 From: EliseZeroTwo Date: Mon, 25 Oct 2021 17:31:27 +0200 Subject: [PATCH] fix: inner attribute followed by outer attribute causing ICE --- compiler/rustc_ast/src/tokenstream.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/compiler/rustc_ast/src/tokenstream.rs b/compiler/rustc_ast/src/tokenstream.rs index 5d994dbad4d1..51cabb50cd3d 100644 --- a/compiler/rustc_ast/src/tokenstream.rs +++ b/compiler/rustc_ast/src/tokenstream.rs @@ -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 => {