diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-22 09:22:39 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-26 08:38:00 +1100 |
| commit | a733082be9962317e41f357a9708632a759c28b2 (patch) | |
| tree | 6a220d4a031d6c22a9ab64b4c7d77fdf3efaae01 /compiler/rustc_builtin_macros/src/lib.rs | |
| parent | df9f83987a0ba2aed69379fc191a4944454d7c42 (diff) | |
| download | rust-a733082be9962317e41f357a9708632a759c28b2.tar.gz rust-a733082be9962317e41f357a9708632a759c28b2.zip | |
Avoid need for `{D,Subd}iagnosticMessage` imports.
The `fluent_messages!` macro produces uses of
`crate::{D,Subd}iagnosticMessage`, which means that every crate using
the macro must have this import:
```
use rustc_errors::{DiagnosticMessage, SubdiagnosticMessage};
```
This commit changes the macro to instead use
`rustc_errors::{D,Subd}iagnosticMessage`, which avoids the need for the
imports.
Diffstat (limited to 'compiler/rustc_builtin_macros/src/lib.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/lib.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/lib.rs b/compiler/rustc_builtin_macros/src/lib.rs index ae097dec8f1..c61f26ca07b 100644 --- a/compiler/rustc_builtin_macros/src/lib.rs +++ b/compiler/rustc_builtin_macros/src/lib.rs @@ -23,7 +23,6 @@ extern crate tracing; use crate::deriving::*; -use rustc_errors::{DiagnosticMessage, SubdiagnosticMessage}; use rustc_expand::base::{MacroExpanderFn, ResolverExpand, SyntaxExtensionKind}; use rustc_expand::proc_macro::BangProcMacro; use rustc_fluent_macro::fluent_messages; |
