File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1044,6 +1044,7 @@ pub(crate) mod builtin {
1044
1044
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1045
1045
#[ rustc_builtin_macro]
1046
1046
#[ macro_export]
1047
+ #[ rustc_diagnostic_item = "env_macro" ] // useful for external lints
1047
1048
macro_rules! env {
1048
1049
( $name: expr $( , ) ?) => { { /* compiler built-in */ } } ;
1049
1050
( $name: expr, $error_msg: expr $( , ) ?) => { { /* compiler built-in */ } } ;
@@ -1074,6 +1075,7 @@ pub(crate) mod builtin {
1074
1075
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1075
1076
#[ rustc_builtin_macro]
1076
1077
#[ macro_export]
1078
+ #[ rustc_diagnostic_item = "option_env_macro" ] // useful for external lints
1077
1079
macro_rules! option_env {
1078
1080
( $name: expr $( , ) ?) => { { /* compiler built-in */ } } ;
1079
1081
}
@@ -1479,6 +1481,7 @@ pub(crate) mod builtin {
1479
1481
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1480
1482
#[ rustc_builtin_macro]
1481
1483
#[ macro_export]
1484
+ #[ rustc_diagnostic_item = "include_macro" ] // useful for external lints
1482
1485
macro_rules! include {
1483
1486
( $file: expr $( , ) ?) => { { /* compiler built-in */ } } ;
1484
1487
}
You can’t perform that action at this time.
0 commit comments