This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/rustc_errors/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments