Skip to content

Commit e5bd5b5

Browse files
committed
Rename HandlerInner::failure as HandlerInner::failure_note.
To match the `FailureNote` variant of `Level`.
1 parent f571c05 commit e5bd5b5

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_errors/src

1 file changed

+4
-4
lines changed

compiler/rustc_errors/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,18 +1502,18 @@ impl HandlerInner {
15021502
error_codes.sort();
15031503
if error_codes.len() > 1 {
15041504
let limit = if error_codes.len() > 9 { 9 } else { error_codes.len() };
1505-
self.failure(format!(
1505+
self.failure_note(format!(
15061506
"Some errors have detailed explanations: {}{}",
15071507
error_codes[..limit].join(", "),
15081508
if error_codes.len() > 9 { "..." } else { "." }
15091509
));
1510-
self.failure(format!(
1510+
self.failure_note(format!(
15111511
"For more information about an error, try \
15121512
`rustc --explain {}`.",
15131513
&error_codes[0]
15141514
));
15151515
} else {
1516-
self.failure(format!(
1516+
self.failure_note(format!(
15171517
"For more information about this error, try \
15181518
`rustc --explain {}`.",
15191519
&error_codes[0]
@@ -1633,7 +1633,7 @@ impl HandlerInner {
16331633
self.delayed_good_path_bugs.push(DelayedDiagnostic::with_backtrace(diagnostic, backtrace));
16341634
}
16351635

1636-
fn failure(&mut self, msg: impl Into<DiagnosticMessage>) {
1636+
fn failure_note(&mut self, msg: impl Into<DiagnosticMessage>) {
16371637
self.emit_diagnostic(&mut Diagnostic::new(FailureNote, msg));
16381638
}
16391639

0 commit comments

Comments
 (0)