Skip to content

Commit ebcaec4

Browse files
committed
Some cleanup
1 parent 9ac1a6b commit ebcaec4

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

compiler/rustc_error_messages/locales/en-US/trait_selection.ftl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ dump_vtable_entries = vtable entries for `{$trait_ref}`: {$entries}
33
unable_to_construct_constant_value = unable to construct a constant value for the unevaluated constant {$unevaluated}
44
55
auto_deref_reached_recursion_limit = reached the recursion limit while auto-dereferencing `{$ty}`
6-
auto_deref_reached_recursion_limit_label = deref recursion limit reached
7-
auto_deref_reached_recursion_limit_help = consider increasing the recursion limit by adding a `#![recursion_limit = "{$suggested_limit}"]` attribute to your crate (`{$crate_name}`)
6+
.label = deref recursion limit reached
7+
.help = consider increasing the recursion limit by adding a `#![recursion_limit = "{$suggested_limit}"]` attribute to your crate (`{$crate_name}`)
88
99
empty_on_clause_in_rustc_on_unimplemented = empty `on`-clause in `#[rustc_on_unimplemented]`
10-
empty_on_clause_in_rustc_on_unimplemented_label = empty on-clause here
10+
.label = empty on-clause here
1111
1212
invalid_on_clause_in_rustc_on_unimplemented = invalid `on`-clause in `#[rustc_on_unimplemented]`
13-
invalid_on_clause_in_rustc_on_unimplemented_label = invalid on-clause here
13+
.label = invalid on-clause here
1414
1515
no_value_in_rustc_on_unimplemented = this attribute must have a valid value
16-
no_value_in_rustc_on_unimplemented_label = expected value here
17-
no_value_in_rustc_on_unimplemented_note = "eg `#[rustc_on_unimplemented(message="foo")]`"
16+
.label = expected value here
17+
.note = "eg `#[rustc_on_unimplemented(message="foo")]`"

compiler/rustc_trait_selection/src/errors.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ pub struct UnableToConstructConstantValue {
1919
}
2020

2121
#[derive(SessionDiagnostic)]
22-
#[help(trait_selection::auto_deref_reached_recursion_limit_help)]
22+
#[help]
2323
#[error(trait_selection::auto_deref_reached_recursion_limit, code = "E0055")]
2424
pub struct AutoDerefReachedRecursionLimit {
2525
#[primary_span]
26-
#[label(trait_selection::auto_deref_reached_recursion_limit_label)]
26+
#[label]
2727
pub span: Span,
2828
pub ty: String,
2929
pub suggested_limit: String,
@@ -34,23 +34,23 @@ pub struct AutoDerefReachedRecursionLimit {
3434
#[error(trait_selection::empty_on_clause_in_rustc_on_unimplemented, code = "E0232")]
3535
pub struct EmptyOnClauseInOnUnimplemented {
3636
#[primary_span]
37-
#[label(trait_selection::empty_on_clause_in_rustc_on_unimplemented_label)]
37+
#[label]
3838
pub span: Span,
3939
}
4040

4141
#[derive(SessionDiagnostic)]
4242
#[error(trait_selection::invalid_on_clause_in_rustc_on_unimplemented, code = "E0232")]
4343
pub struct InvalidOnClauseInOnUnimplemented {
4444
#[primary_span]
45-
#[label(trait_selection::invalid_on_clause_in_rustc_on_unimplemented_label)]
45+
#[label]
4646
pub span: Span,
4747
}
4848

4949
#[derive(SessionDiagnostic)]
5050
#[error(trait_selection::no_value_in_rustc_on_unimplemented, code = "E0232")]
5151
pub struct NoValueInOnUnimplemented {
5252
#[primary_span]
53-
#[label(trait_selection::no_value_in_rustc_on_unimplemented_label)]
54-
#[note(trait_selection::no_value_in_rustc_on_unimplemented_note)]
53+
#[label]
54+
#[note]
5555
pub span: Span,
5656
}

0 commit comments

Comments
 (0)