@@ -274,7 +274,7 @@ pub struct Handler {
274274 err_count : AtomicUsize ,
275275 emitter : Lock < Box < dyn Emitter + sync:: Send > > ,
276276 continue_after_error : LockCell < bool > ,
277- delayed_span_bug : Lock < Vec < Diagnostic > > ,
277+ delayed_span_bugs : Lock < Vec < Diagnostic > > ,
278278
279279 // This set contains the `DiagnosticId` of all emitted diagnostics to avoid
280280 // emitting the same diagnostic with extended help (`--teach`) twice, which
@@ -306,7 +306,7 @@ pub struct HandlerFlags {
306306impl Drop for Handler {
307307 fn drop ( & mut self ) {
308308 if self . err_count ( ) == 0 {
309- let mut bugs = self . delayed_span_bug . borrow_mut ( ) ;
309+ let mut bugs = self . delayed_span_bugs . borrow_mut ( ) ;
310310 let has_bugs = !bugs. is_empty ( ) ;
311311 for bug in bugs. drain ( ..) {
312312 DiagnosticBuilder :: new_diagnostic ( self , bug) . emit ( ) ;
@@ -362,7 +362,7 @@ impl Handler {
362362 err_count : AtomicUsize :: new ( 0 ) ,
363363 emitter : Lock :: new ( e) ,
364364 continue_after_error : LockCell :: new ( true ) ,
365- delayed_span_bug : Lock :: new ( Vec :: new ( ) ) ,
365+ delayed_span_bugs : Lock :: new ( Vec :: new ( ) ) ,
366366 taught_diagnostics : Lock :: new ( FxHashSet ( ) ) ,
367367 emitted_diagnostic_codes : Lock :: new ( FxHashSet ( ) ) ,
368368 emitted_diagnostics : Lock :: new ( FxHashSet ( ) ) ,
@@ -530,7 +530,7 @@ impl Handler {
530530 if self . flags . report_delayed_bugs {
531531 DiagnosticBuilder :: new_diagnostic ( self , diagnostic. clone ( ) ) . emit ( ) ;
532532 }
533- self . delayed_span_bug . borrow_mut ( ) . push ( diagnostic) ;
533+ self . delayed_span_bugs . borrow_mut ( ) . push ( diagnostic) ;
534534 }
535535 pub fn span_bug_no_panic < S : Into < MultiSpan > > ( & self , sp : S , msg : & str ) {
536536 self . emit ( & sp. into ( ) , msg, Bug ) ;
0 commit comments