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 {
1502
1502
error_codes. sort ( ) ;
1503
1503
if error_codes. len ( ) > 1 {
1504
1504
let limit = if error_codes. len ( ) > 9 { 9 } else { error_codes. len ( ) } ;
1505
- self . failure ( format ! (
1505
+ self . failure_note ( format ! (
1506
1506
"Some errors have detailed explanations: {}{}" ,
1507
1507
error_codes[ ..limit] . join( ", " ) ,
1508
1508
if error_codes. len( ) > 9 { "..." } else { "." }
1509
1509
) ) ;
1510
- self . failure ( format ! (
1510
+ self . failure_note ( format ! (
1511
1511
"For more information about an error, try \
1512
1512
`rustc --explain {}`.",
1513
1513
& error_codes[ 0 ]
1514
1514
) ) ;
1515
1515
} else {
1516
- self . failure ( format ! (
1516
+ self . failure_note ( format ! (
1517
1517
"For more information about this error, try \
1518
1518
`rustc --explain {}`.",
1519
1519
& error_codes[ 0 ]
@@ -1633,7 +1633,7 @@ impl HandlerInner {
1633
1633
self . delayed_good_path_bugs . push ( DelayedDiagnostic :: with_backtrace ( diagnostic, backtrace) ) ;
1634
1634
}
1635
1635
1636
- fn failure ( & mut self , msg : impl Into < DiagnosticMessage > ) {
1636
+ fn failure_note ( & mut self , msg : impl Into < DiagnosticMessage > ) {
1637
1637
self . emit_diagnostic ( & mut Diagnostic :: new ( FailureNote , msg) ) ;
1638
1638
}
1639
1639
You can’t perform that action at this time.
0 commit comments