@@ -653,30 +653,23 @@ impl Session {
653653 #[ rustc_lint_diagnostics]
654654 #[ allow( rustc:: untranslatable_diagnostic) ]
655655 #[ allow( rustc:: diagnostic_outside_of_impl) ]
656- pub fn note_without_error ( & self , msg : impl Into < DiagnosticMessage > ) {
657- self . diagnostic ( ) . note_without_error ( msg)
656+ pub fn note ( & self , msg : impl Into < DiagnosticMessage > ) {
657+ self . diagnostic ( ) . note ( msg)
658658 }
659659
660660 #[ track_caller]
661661 #[ rustc_lint_diagnostics]
662662 #[ allow( rustc:: untranslatable_diagnostic) ]
663663 #[ allow( rustc:: diagnostic_outside_of_impl) ]
664- pub fn span_note_without_error < S : Into < MultiSpan > > (
665- & self ,
666- sp : S ,
667- msg : impl Into < DiagnosticMessage > ,
668- ) {
669- self . diagnostic ( ) . span_note_without_error ( sp, msg)
664+ pub fn span_note < S : Into < MultiSpan > > ( & self , sp : S , msg : impl Into < DiagnosticMessage > ) {
665+ self . diagnostic ( ) . span_note ( sp, msg)
670666 }
671667
672668 #[ rustc_lint_diagnostics]
673669 #[ allow( rustc:: untranslatable_diagnostic) ]
674670 #[ allow( rustc:: diagnostic_outside_of_impl) ]
675- pub fn struct_note_without_error (
676- & self ,
677- msg : impl Into < DiagnosticMessage > ,
678- ) -> DiagnosticBuilder < ' _ , ( ) > {
679- self . diagnostic ( ) . struct_note_without_error ( msg)
671+ pub fn struct_note ( & self , msg : impl Into < DiagnosticMessage > ) -> DiagnosticBuilder < ' _ , ( ) > {
672+ self . diagnostic ( ) . struct_note ( msg)
680673 }
681674
682675 #[ inline]
@@ -1743,7 +1736,7 @@ impl EarlyErrorHandler {
17431736 #[ allow( rustc:: untranslatable_diagnostic) ]
17441737 #[ allow( rustc:: diagnostic_outside_of_impl) ]
17451738 pub fn early_note ( & self , msg : impl Into < DiagnosticMessage > ) {
1746- self . handler . struct_note_without_error ( msg) . emit ( )
1739+ self . handler . struct_note ( msg) . emit ( )
17471740 }
17481741
17491742 #[ allow( rustc:: untranslatable_diagnostic) ]
0 commit comments