File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -114,13 +114,12 @@ fn default_dcx(
114
114
false ,
115
115
) ;
116
116
let emitter = Box :: new (
117
- HumanEmitter :: new ( stderr_destination ( emit_color) , fallback_bundle. clone ( ) )
117
+ HumanEmitter :: new ( stderr_destination ( emit_color) , fallback_bundle)
118
118
. sm ( Some ( source_map. clone ( ) ) ) ,
119
119
) ;
120
120
121
121
let emitter: Box < DynEmitter > = if !show_parse_errors {
122
122
Box :: new ( SilentEmitter {
123
- fallback_bundle,
124
123
fatal_emitter : emitter,
125
124
fatal_note : None ,
126
125
emit_fatal_diagnostic : false ,
@@ -205,16 +204,7 @@ impl ParseSess {
205
204
}
206
205
207
206
pub ( crate ) fn set_silent_emitter ( & mut self ) {
208
- // Ideally this invocation wouldn't be necessary and the fallback bundle in
209
- // `self.parse_sess.dcx` could be used, but the lock in `DiagCtxt` prevents this.
210
- // See `<rustc_errors::SilentEmitter as Translate>::fallback_fluent_bundle`.
211
- let fallback_bundle = rustc_errors:: fallback_fluent_bundle (
212
- rustc_driver:: DEFAULT_LOCALE_RESOURCES . to_vec ( ) ,
213
- false ,
214
- ) ;
215
- self . raw_psess
216
- . dcx ( )
217
- . make_silent ( fallback_bundle, None , false ) ;
207
+ self . raw_psess . dcx ( ) . make_silent ( None , false ) ;
218
208
}
219
209
220
210
pub ( crate ) fn span_to_filename ( & self , span : Span ) -> FileName {
You can’t perform that action at this time.
0 commit comments