@@ -57,20 +57,20 @@ fn finish(body: TokenStream, resource: TokenStream) -> proc_macro::TokenStream {
5757 /// identifiers for different subdiagnostic kinds.
5858 pub mod _subdiag {
5959 /// Default for `#[help]`
60- pub const help: crate :: SubdiagnosticMessage =
61- crate :: SubdiagnosticMessage :: FluentAttr ( std:: borrow:: Cow :: Borrowed ( "help" ) ) ;
60+ pub const help: rustc_errors :: SubdiagnosticMessage =
61+ rustc_errors :: SubdiagnosticMessage :: FluentAttr ( std:: borrow:: Cow :: Borrowed ( "help" ) ) ;
6262 /// Default for `#[note]`
63- pub const note: crate :: SubdiagnosticMessage =
64- crate :: SubdiagnosticMessage :: FluentAttr ( std:: borrow:: Cow :: Borrowed ( "note" ) ) ;
63+ pub const note: rustc_errors :: SubdiagnosticMessage =
64+ rustc_errors :: SubdiagnosticMessage :: FluentAttr ( std:: borrow:: Cow :: Borrowed ( "note" ) ) ;
6565 /// Default for `#[warn]`
66- pub const warn: crate :: SubdiagnosticMessage =
67- crate :: SubdiagnosticMessage :: FluentAttr ( std:: borrow:: Cow :: Borrowed ( "warn" ) ) ;
66+ pub const warn: rustc_errors :: SubdiagnosticMessage =
67+ rustc_errors :: SubdiagnosticMessage :: FluentAttr ( std:: borrow:: Cow :: Borrowed ( "warn" ) ) ;
6868 /// Default for `#[label]`
69- pub const label: crate :: SubdiagnosticMessage =
70- crate :: SubdiagnosticMessage :: FluentAttr ( std:: borrow:: Cow :: Borrowed ( "label" ) ) ;
69+ pub const label: rustc_errors :: SubdiagnosticMessage =
70+ rustc_errors :: SubdiagnosticMessage :: FluentAttr ( std:: borrow:: Cow :: Borrowed ( "label" ) ) ;
7171 /// Default for `#[suggestion]`
72- pub const suggestion: crate :: SubdiagnosticMessage =
73- crate :: SubdiagnosticMessage :: FluentAttr ( std:: borrow:: Cow :: Borrowed ( "suggestion" ) ) ;
72+ pub const suggestion: rustc_errors :: SubdiagnosticMessage =
73+ rustc_errors :: SubdiagnosticMessage :: FluentAttr ( std:: borrow:: Cow :: Borrowed ( "suggestion" ) ) ;
7474 }
7575 }
7676 }
@@ -248,11 +248,8 @@ pub(crate) fn fluent_messages(input: proc_macro::TokenStream) -> proc_macro::Tok
248248 format ! ( "Constant referring to Fluent message `{name}` from `{crate_name}`" ) ;
249249 constants. extend ( quote ! {
250250 #[ doc = #docstr]
251- pub const #snake_name: crate :: DiagnosticMessage =
252- crate :: DiagnosticMessage :: FluentIdentifier (
253- std:: borrow:: Cow :: Borrowed ( #name) ,
254- None
255- ) ;
251+ pub const #snake_name: rustc_errors:: DiagnosticMessage =
252+ rustc_errors:: DiagnosticMessage :: FluentIdentifier ( std:: borrow:: Cow :: Borrowed ( #name) , None ) ;
256253 } ) ;
257254
258255 for Attribute { id : Identifier { name : attr_name } , .. } in attributes {
@@ -279,10 +276,8 @@ pub(crate) fn fluent_messages(input: proc_macro::TokenStream) -> proc_macro::Tok
279276 ) ;
280277 constants. extend ( quote ! {
281278 #[ doc = #msg]
282- pub const #snake_name: crate :: SubdiagnosticMessage =
283- crate :: SubdiagnosticMessage :: FluentAttr (
284- std:: borrow:: Cow :: Borrowed ( #attr_name)
285- ) ;
279+ pub const #snake_name: rustc_errors:: SubdiagnosticMessage =
280+ rustc_errors:: SubdiagnosticMessage :: FluentAttr ( std:: borrow:: Cow :: Borrowed ( #attr_name) ) ;
286281 } ) ;
287282 }
288283
0 commit comments