mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-24 05:59:39 +00:00
Check if merged attributes list is empty in expr Fixes #139373 In the example code, an [`UnrecognizedReprHint`](6b5ccfc87f/compiler/rustc_attr_parsing/src/attributes/repr.rs (L155)) error is output, and the list of merged attributes becomes empty. This causes a [panic](6b5ccfc87f/compiler/rustc_ast_lowering/src/lib.rs (L618)) to occur. So, it's necessary to check if merged attributes list is empty as other functions do. ref:6b5ccfc87f/compiler/rustc_ast_lowering/src/lib.rs (L896)