@@ -100,7 +100,6 @@ use syntax::feature_gate::{GatedCfg, UnstableFeatures};
100
100
use syntax:: parse:: { self , PResult } ;
101
101
use syntax_pos:: MultiSpan ;
102
102
use errors:: emitter:: Emitter ;
103
- use errors:: snippet:: FormatMode ;
104
103
105
104
#[ cfg( test) ]
106
105
pub mod test;
@@ -141,9 +140,7 @@ pub fn run(args: Vec<String>) -> isize {
141
140
None => {
142
141
let emitter =
143
142
errors:: emitter:: EmitterWriter :: stderr ( errors:: ColorConfig :: Auto ,
144
- None ,
145
- None ,
146
- FormatMode :: EnvironmentSelected ) ;
143
+ None ) ;
147
144
let handler = errors:: Handler :: with_emitter ( true , false , Box :: new ( emitter) ) ;
148
145
handler. emit ( & MultiSpan :: new ( ) ,
149
146
& abort_msg ( err_count) ,
@@ -381,10 +378,7 @@ fn check_cfg(sopts: &config::Options,
381
378
output : ErrorOutputType ) {
382
379
let emitter: Box < Emitter > = match output {
383
380
config:: ErrorOutputType :: HumanReadable ( color_config) => {
384
- Box :: new ( errors:: emitter:: EmitterWriter :: stderr ( color_config,
385
- None ,
386
- None ,
387
- FormatMode :: EnvironmentSelected ) )
381
+ Box :: new ( errors:: emitter:: EmitterWriter :: stderr ( color_config, None ) )
388
382
}
389
383
config:: ErrorOutputType :: Json => Box :: new ( json:: JsonEmitter :: basic ( ) ) ,
390
384
} ;
@@ -1050,10 +1044,7 @@ pub fn monitor<F: FnOnce() + Send + 'static>(f: F) {
1050
1044
// Thread panicked without emitting a fatal diagnostic
1051
1045
if !value. is :: < errors:: FatalError > ( ) {
1052
1046
let emitter =
1053
- Box :: new ( errors:: emitter:: EmitterWriter :: stderr ( errors:: ColorConfig :: Auto ,
1054
- None ,
1055
- None ,
1056
- FormatMode :: EnvironmentSelected ) ) ;
1047
+ Box :: new ( errors:: emitter:: EmitterWriter :: stderr ( errors:: ColorConfig :: Auto , None ) ) ;
1057
1048
let handler = errors:: Handler :: with_emitter ( true , false , emitter) ;
1058
1049
1059
1050
// a .span_bug or .bug call has already printed what
0 commit comments