This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -553,10 +553,10 @@ impl Emitter for EmitterWriter {
553
553
}
554
554
555
555
/// An emitter that does nothing when emitting a non-fatal diagnostic.
556
- /// Fatal diagnostics are forwarded to `fatal_handler ` to avoid silent
556
+ /// Fatal diagnostics are forwarded to `fatal_dcx ` to avoid silent
557
557
/// failures of rustc, as witnessed e.g. in issue #89358.
558
558
pub struct SilentEmitter {
559
- pub fatal_handler : DiagCtxt ,
559
+ pub fatal_dcx : DiagCtxt ,
560
560
pub fatal_note : Option < String > ,
561
561
}
562
562
@@ -581,7 +581,7 @@ impl Emitter for SilentEmitter {
581
581
if let Some ( ref note) = self . fatal_note {
582
582
d. note ( note. clone ( ) ) ;
583
583
}
584
- self . fatal_handler . emit_diagnostic ( d) ;
584
+ self . fatal_dcx . emit_diagnostic ( d) ;
585
585
}
586
586
}
587
587
}
Original file line number Diff line number Diff line change @@ -255,8 +255,8 @@ impl ParseSess {
255
255
pub fn with_silent_emitter ( fatal_note : Option < String > ) -> Self {
256
256
let fallback_bundle = fallback_fluent_bundle ( Vec :: new ( ) , false ) ;
257
257
let sm = Lrc :: new ( SourceMap :: new ( FilePathMapping :: empty ( ) ) ) ;
258
- let fatal_handler = DiagCtxt :: with_tty_emitter ( None , fallback_bundle) . disable_warnings ( ) ;
259
- let handler = DiagCtxt :: with_emitter ( Box :: new ( SilentEmitter { fatal_handler , fatal_note } ) )
258
+ let fatal_dcx = DiagCtxt :: with_tty_emitter ( None , fallback_bundle) . disable_warnings ( ) ;
259
+ let handler = DiagCtxt :: with_emitter ( Box :: new ( SilentEmitter { fatal_dcx , fatal_note } ) )
260
260
. disable_warnings ( ) ;
261
261
ParseSess :: with_dcx ( handler, sm)
262
262
}
You can’t perform that action at this time.
0 commit comments