@@ -274,7 +274,7 @@ pub struct Handler {
274
274
err_count : AtomicUsize ,
275
275
emitter : Lock < Box < dyn Emitter + sync:: Send > > ,
276
276
continue_after_error : LockCell < bool > ,
277
- delayed_span_bug : Lock < Vec < Diagnostic > > ,
277
+ delayed_span_bugs : Lock < Vec < Diagnostic > > ,
278
278
279
279
// This set contains the `DiagnosticId` of all emitted diagnostics to avoid
280
280
// emitting the same diagnostic with extended help (`--teach`) twice, which
@@ -306,7 +306,7 @@ pub struct HandlerFlags {
306
306
impl Drop for Handler {
307
307
fn drop ( & mut self ) {
308
308
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 ( ) ;
310
310
let has_bugs = !bugs. is_empty ( ) ;
311
311
for bug in bugs. drain ( ..) {
312
312
DiagnosticBuilder :: new_diagnostic ( self , bug) . emit ( ) ;
@@ -362,7 +362,7 @@ impl Handler {
362
362
err_count : AtomicUsize :: new ( 0 ) ,
363
363
emitter : Lock :: new ( e) ,
364
364
continue_after_error : LockCell :: new ( true ) ,
365
- delayed_span_bug : Lock :: new ( Vec :: new ( ) ) ,
365
+ delayed_span_bugs : Lock :: new ( Vec :: new ( ) ) ,
366
366
taught_diagnostics : Lock :: new ( FxHashSet ( ) ) ,
367
367
emitted_diagnostic_codes : Lock :: new ( FxHashSet ( ) ) ,
368
368
emitted_diagnostics : Lock :: new ( FxHashSet ( ) ) ,
@@ -530,7 +530,7 @@ impl Handler {
530
530
if self . flags . report_delayed_bugs {
531
531
DiagnosticBuilder :: new_diagnostic ( self , diagnostic. clone ( ) ) . emit ( ) ;
532
532
}
533
- self . delayed_span_bug . borrow_mut ( ) . push ( diagnostic) ;
533
+ self . delayed_span_bugs . borrow_mut ( ) . push ( diagnostic) ;
534
534
}
535
535
pub fn span_bug_no_panic < S : Into < MultiSpan > > ( & self , sp : S , msg : & str ) {
536
536
self . emit ( & sp. into ( ) , msg, Bug ) ;
0 commit comments