Skip to content

Commit 4de5d37

Browse files
committed
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.
1 parent 456754c commit 4de5d37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ use rustc_codegen_ssa::target_features::supported_target_features;
101101
use rustc_data_structures::fx::FxIndexMap;
102102
use rustc_data_structures::sync::IntoDynSyncSend;
103103
use rustc_codegen_ssa::traits::{CodegenBackend, ExtraBackendMethods, ThinBufferMethods, WriteBackendMethods};
104-
use rustc_errors::{DiagnosticMessage, ErrorGuaranteed, Handler, SubdiagnosticMessage};
104+
use rustc_errors::{ErrorGuaranteed, Handler};
105105
use rustc_fluent_macro::fluent_messages;
106106
use rustc_metadata::EncodedMetadata;
107107
use rustc_middle::dep_graph::{WorkProduct, WorkProductId};

0 commit comments

Comments
 (0)