@@ -338,7 +338,6 @@ pub macro debug_assert_matches($($arg:tt)*) {
338338/// ```
339339#[ macro_export]
340340#[ stable( feature = "matches_macro" , since = "1.42.0" ) ]
341- #[ cfg_attr( not( test) , rustc_diagnostic_item = "matches_macro" ) ]
342341macro_rules! matches {
343342 ( $expression: expr, $( |) ? $( $pattern: pat_param ) |+ $( if $guard: expr ) ? $( , ) ?) => {
344343 match $expression {
@@ -820,7 +819,6 @@ pub(crate) mod builtin {
820819 #[ stable( feature = "compile_error_macro" , since = "1.20.0" ) ]
821820 #[ rustc_builtin_macro]
822821 #[ macro_export]
823- #[ cfg_attr( not( test) , rustc_diagnostic_item = "compile_error_macro" ) ]
824822 macro_rules! compile_error {
825823 ( $msg: expr $( , ) ?) => { { /* compiler built-in */ } } ;
826824 }
@@ -944,7 +942,6 @@ pub(crate) mod builtin {
944942 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
945943 #[ rustc_builtin_macro]
946944 #[ macro_export]
947- #[ cfg_attr( not( test) , rustc_diagnostic_item = "env_macro" ) ]
948945 macro_rules! env {
949946 ( $name: expr $( , ) ?) => { { /* compiler built-in */ } } ;
950947 ( $name: expr, $error_msg: expr $( , ) ?) => { { /* compiler built-in */ } } ;
@@ -973,7 +970,6 @@ pub(crate) mod builtin {
973970 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
974971 #[ rustc_builtin_macro]
975972 #[ macro_export]
976- #[ cfg_attr( not( test) , rustc_diagnostic_item = "option_env_macro" ) ]
977973 macro_rules! option_env {
978974 ( $name: expr $( , ) ?) => { { /* compiler built-in */ } } ;
979975 }
@@ -1058,7 +1054,6 @@ pub(crate) mod builtin {
10581054 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
10591055 #[ rustc_builtin_macro]
10601056 #[ macro_export]
1061- #[ cfg_attr( not( test) , rustc_diagnostic_item = "concat_macro" ) ]
10621057 macro_rules! concat {
10631058 ( $( $e: expr) ,* $( , ) ?) => { { /* compiler built-in */ } } ;
10641059 }
@@ -1084,7 +1079,6 @@ pub(crate) mod builtin {
10841079 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
10851080 #[ rustc_builtin_macro]
10861081 #[ macro_export]
1087- #[ cfg_attr( not( test) , rustc_diagnostic_item = "line_macro" ) ]
10881082 macro_rules! line {
10891083 ( ) => {
10901084 /* compiler built-in */
@@ -1124,7 +1118,6 @@ pub(crate) mod builtin {
11241118 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
11251119 #[ rustc_builtin_macro]
11261120 #[ macro_export]
1127- #[ cfg_attr( not( test) , rustc_diagnostic_item = "column_macro" ) ]
11281121 macro_rules! column {
11291122 ( ) => {
11301123 /* compiler built-in */
@@ -1150,7 +1143,6 @@ pub(crate) mod builtin {
11501143 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
11511144 #[ rustc_builtin_macro]
11521145 #[ macro_export]
1153- #[ cfg_attr( not( test) , rustc_diagnostic_item = "file_macro" ) ]
11541146 macro_rules! file {
11551147 ( ) => {
11561148 /* compiler built-in */
@@ -1175,7 +1167,6 @@ pub(crate) mod builtin {
11751167 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
11761168 #[ rustc_builtin_macro]
11771169 #[ macro_export]
1178- #[ cfg_attr( not( test) , rustc_diagnostic_item = "stringify_macro" ) ]
11791170 macro_rules! stringify {
11801171 ( $( $t: tt) * ) => {
11811172 /* compiler built-in */
@@ -1282,7 +1273,6 @@ pub(crate) mod builtin {
12821273 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
12831274 #[ rustc_builtin_macro]
12841275 #[ macro_export]
1285- #[ cfg_attr( not( test) , rustc_diagnostic_item = "module_path_macro" ) ]
12861276 macro_rules! module_path {
12871277 ( ) => {
12881278 /* compiler built-in */
@@ -1316,7 +1306,6 @@ pub(crate) mod builtin {
13161306 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
13171307 #[ rustc_builtin_macro]
13181308 #[ macro_export]
1319- #[ cfg_attr( not( test) , rustc_diagnostic_item = "cfg_macro" ) ]
13201309 macro_rules! cfg {
13211310 ( $( $cfg: tt) * ) => {
13221311 /* compiler built-in */
@@ -1367,7 +1356,6 @@ pub(crate) mod builtin {
13671356 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
13681357 #[ rustc_builtin_macro]
13691358 #[ macro_export]
1370- #[ cfg_attr( not( test) , rustc_diagnostic_item = "include_macro" ) ]
13711359 macro_rules! include {
13721360 ( $file: expr $( , ) ?) => { { /* compiler built-in */ } } ;
13731361 }
0 commit comments