Auto merge of #83312 - petrochenkov:noinner, r=Aaron1011
parser: Remove support for inner attributes on non-block expressions Remove support for attributes like ```rust fn attrs() { (#![print_target_and_args(fifth)] 1, 2); [#![print_target_and_args(sixth)] 1 , 2]; [#![print_target_and_args(seventh)] true ; 5]; match 0 { #![print_target_and_args(eighth)] _ => {} } MyStruct { #![print_target_and_args(ninth)] field: true }; } ``` They are - useless - unstable (modulo holes like https://github.com/rust-lang/rust/issues/65860) - pessimize compiler performance, namely token collection for macros (cc https://github.com/rust-lang/rust/pull/82608) I still want to run crater on this to check whether the stability holes are exploited in practice, and whether such attributes are used at all.
Showing
想要评论请 注册 或 登录