@@ -57,20 +57,20 @@ fn finish(body: TokenStream, resource: TokenStream) -> proc_macro::TokenStream {
57
57
/// identifiers for different subdiagnostic kinds.
58
58
pub mod _subdiag {
59
59
/// 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" ) ) ;
62
62
/// 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" ) ) ;
65
65
/// 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" ) ) ;
68
68
/// 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" ) ) ;
71
71
/// 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" ) ) ;
74
74
}
75
75
}
76
76
}
@@ -248,11 +248,8 @@ pub(crate) fn fluent_messages(input: proc_macro::TokenStream) -> proc_macro::Tok
248
248
format ! ( "Constant referring to Fluent message `{name}` from `{crate_name}`" ) ;
249
249
constants. extend ( quote ! {
250
250
#[ 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 ) ;
256
253
} ) ;
257
254
258
255
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
279
276
) ;
280
277
constants. extend ( quote ! {
281
278
#[ 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) ) ;
286
281
} ) ;
287
282
}
288
283
0 commit comments