@@ -338,7 +338,6 @@ pub macro debug_assert_matches($($arg:tt)*) {
338
338
/// ```
339
339
#[ macro_export]
340
340
#[ stable( feature = "matches_macro" , since = "1.42.0" ) ]
341
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "matches_macro" ) ]
342
341
macro_rules! matches {
343
342
( $expression: expr, $( |) ? $( $pattern: pat_param ) |+ $( if $guard: expr ) ? $( , ) ?) => {
344
343
match $expression {
@@ -820,7 +819,6 @@ pub(crate) mod builtin {
820
819
#[ stable( feature = "compile_error_macro" , since = "1.20.0" ) ]
821
820
#[ rustc_builtin_macro]
822
821
#[ macro_export]
823
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "compile_error_macro" ) ]
824
822
macro_rules! compile_error {
825
823
( $msg: expr $( , ) ?) => { { /* compiler built-in */ } } ;
826
824
}
@@ -944,7 +942,6 @@ pub(crate) mod builtin {
944
942
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
945
943
#[ rustc_builtin_macro]
946
944
#[ macro_export]
947
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "env_macro" ) ]
948
945
macro_rules! env {
949
946
( $name: expr $( , ) ?) => { { /* compiler built-in */ } } ;
950
947
( $name: expr, $error_msg: expr $( , ) ?) => { { /* compiler built-in */ } } ;
@@ -973,7 +970,6 @@ pub(crate) mod builtin {
973
970
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
974
971
#[ rustc_builtin_macro]
975
972
#[ macro_export]
976
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "option_env_macro" ) ]
977
973
macro_rules! option_env {
978
974
( $name: expr $( , ) ?) => { { /* compiler built-in */ } } ;
979
975
}
@@ -1058,7 +1054,6 @@ pub(crate) mod builtin {
1058
1054
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1059
1055
#[ rustc_builtin_macro]
1060
1056
#[ macro_export]
1061
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "concat_macro" ) ]
1062
1057
macro_rules! concat {
1063
1058
( $( $e: expr) ,* $( , ) ?) => { { /* compiler built-in */ } } ;
1064
1059
}
@@ -1084,7 +1079,6 @@ pub(crate) mod builtin {
1084
1079
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1085
1080
#[ rustc_builtin_macro]
1086
1081
#[ macro_export]
1087
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "line_macro" ) ]
1088
1082
macro_rules! line {
1089
1083
( ) => {
1090
1084
/* compiler built-in */
@@ -1124,7 +1118,6 @@ pub(crate) mod builtin {
1124
1118
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1125
1119
#[ rustc_builtin_macro]
1126
1120
#[ macro_export]
1127
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "column_macro" ) ]
1128
1121
macro_rules! column {
1129
1122
( ) => {
1130
1123
/* compiler built-in */
@@ -1150,7 +1143,6 @@ pub(crate) mod builtin {
1150
1143
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1151
1144
#[ rustc_builtin_macro]
1152
1145
#[ macro_export]
1153
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "file_macro" ) ]
1154
1146
macro_rules! file {
1155
1147
( ) => {
1156
1148
/* compiler built-in */
@@ -1175,7 +1167,6 @@ pub(crate) mod builtin {
1175
1167
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1176
1168
#[ rustc_builtin_macro]
1177
1169
#[ macro_export]
1178
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "stringify_macro" ) ]
1179
1170
macro_rules! stringify {
1180
1171
( $( $t: tt) * ) => {
1181
1172
/* compiler built-in */
@@ -1282,7 +1273,6 @@ pub(crate) mod builtin {
1282
1273
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1283
1274
#[ rustc_builtin_macro]
1284
1275
#[ macro_export]
1285
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "module_path_macro" ) ]
1286
1276
macro_rules! module_path {
1287
1277
( ) => {
1288
1278
/* compiler built-in */
@@ -1316,7 +1306,6 @@ pub(crate) mod builtin {
1316
1306
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1317
1307
#[ rustc_builtin_macro]
1318
1308
#[ macro_export]
1319
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "cfg_macro" ) ]
1320
1309
macro_rules! cfg {
1321
1310
( $( $cfg: tt) * ) => {
1322
1311
/* compiler built-in */
@@ -1367,7 +1356,6 @@ pub(crate) mod builtin {
1367
1356
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1368
1357
#[ rustc_builtin_macro]
1369
1358
#[ macro_export]
1370
- #[ cfg_attr( not( test) , rustc_diagnostic_item = "include_macro" ) ]
1371
1359
macro_rules! include {
1372
1360
( $file: expr $( , ) ?) => { { /* compiler built-in */ } } ;
1373
1361
}
0 commit comments