Skip to content

Commit 955ba37

Browse files
committed
Remove the unused anon_num_here error.
1 parent 88fb1b9 commit 955ba37

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

compiler/rustc_infer/messages.ftl

-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ infer_region_explanation = {$pref_kind ->
163163
[as_defined] the lifetime `{$desc_arg}` as defined here
164164
[as_defined_anon] the anonymous lifetime as defined here
165165
[defined_here] the anonymous lifetime defined here
166-
[anon_num_here] the anonymous lifetime #{$desc_num_arg} defined here
167166
[defined_here_reg] the lifetime `{$desc_arg}` as defined here
168167
}{$suff_kind ->
169168
*[should_not_happen] [{$suff_kind}]

compiler/rustc_infer/src/errors/note_and_explain.rs

-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ struct DescriptionCtx<'a> {
99
span: Option<Span>,
1010
kind: &'a str,
1111
arg: String,
12-
num_arg: u32,
1312
}
1413

1514
impl<'a> DescriptionCtx<'a> {
@@ -113,7 +112,6 @@ impl<'a> DescriptionCtx<'a> {
113112
fn add_to(self, diag: &mut rustc_errors::Diagnostic) {
114113
diag.set_arg("desc_kind", self.kind);
115114
diag.set_arg("desc_arg", self.arg);
116-
diag.set_arg("desc_num_arg", self.num_arg);
117115
}
118116
}
119117

0 commit comments

Comments
 (0)