diff options
| author | Thom Chiovoloni <thom@shift.click> | 2023-11-04 17:00:51 -0700 |
|---|---|---|
| committer | Thom Chiovoloni <thom@shift.click> | 2023-11-04 17:00:51 -0700 |
| commit | 65bec86b425b3580bba0b3eccdf44294d2baa88f (patch) | |
| tree | 10850c1d1e419bb3797fac8cd7e1a604b748dd13 | |
| parent | 9c8a2694fadf3900c4d7880f6357cee60e9aa39b (diff) | |
| download | rust-65bec86b425b3580bba0b3eccdf44294d2baa88f.tar.gz rust-65bec86b425b3580bba0b3eccdf44294d2baa88f.zip | |
Add diagnostic items for a few of core's builtin macros
| -rw-r--r-- | library/core/src/macros/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 125a6f57bfb..7f5908e477c 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -1044,6 +1044,7 @@ pub(crate) mod builtin { #[stable(feature = "rust1", since = "1.0.0")] #[rustc_builtin_macro] #[macro_export] + #[rustc_diagnostic_item = "env_macro"] // useful for external lints macro_rules! env { ($name:expr $(,)?) => {{ /* compiler built-in */ }}; ($name:expr, $error_msg:expr $(,)?) => {{ /* compiler built-in */ }}; @@ -1074,6 +1075,7 @@ pub(crate) mod builtin { #[stable(feature = "rust1", since = "1.0.0")] #[rustc_builtin_macro] #[macro_export] + #[rustc_diagnostic_item = "option_env_macro"] // useful for external lints macro_rules! option_env { ($name:expr $(,)?) => {{ /* compiler built-in */ }}; } @@ -1479,6 +1481,7 @@ pub(crate) mod builtin { #[stable(feature = "rust1", since = "1.0.0")] #[rustc_builtin_macro] #[macro_export] + #[rustc_diagnostic_item = "include_macro"] // useful for external lints macro_rules! include { ($file:expr $(,)?) => {{ /* compiler built-in */ }}; } |
