mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
76a365523f
Fix ICE from cfg_attr_trace Fixes rust-lang/rust#154801 Fixes https://github.com/rust-lang/rust/issues/143094 r? @JonathanBrouwer The root cause is we recovery from parsing attribute error here: https://github.com/rust-lang/rust/blob/ed6f9af7d47f5a5eda2a4a1925d1e250b51a37f2/compiler/rustc_attr_parsing/src/parser.rs#L550 while the later suggestion code from type checking try to inspect the attr span of the `expr` in the second error, keep the span seems reasonable.