@@ -1055,13 +1055,15 @@ fn default_emitter(
10551055 Some ( source_map. clone ( ) ) ,
10561056 short,
10571057 sopts. debugging_opts . teach ,
1058+ sopts. debugging_opts . terminal_width ,
10581059 ) ,
10591060 Some ( dst) => EmitterWriter :: new (
10601061 dst,
10611062 Some ( source_map. clone ( ) ) ,
10621063 short,
10631064 false , // no teach messages when writing to a buffer
10641065 false , // no colors when writing to a buffer
1066+ None , // no terminal width
10651067 ) ,
10661068 } ;
10671069 Box :: new ( emitter. ui_testing ( sopts. debugging_opts . ui_testing ) )
@@ -1375,7 +1377,7 @@ pub fn early_error(output: config::ErrorOutputType, msg: &str) -> ! {
13751377 let emitter: Box < dyn Emitter + sync:: Send > = match output {
13761378 config:: ErrorOutputType :: HumanReadable ( kind) => {
13771379 let ( short, color_config) = kind. unzip ( ) ;
1378- Box :: new ( EmitterWriter :: stderr ( color_config, None , short, false ) )
1380+ Box :: new ( EmitterWriter :: stderr ( color_config, None , short, false , None ) )
13791381 }
13801382 config:: ErrorOutputType :: Json { pretty, json_rendered } =>
13811383 Box :: new ( JsonEmitter :: basic ( pretty, json_rendered) ) ,
@@ -1389,7 +1391,7 @@ pub fn early_warn(output: config::ErrorOutputType, msg: &str) {
13891391 let emitter: Box < dyn Emitter + sync:: Send > = match output {
13901392 config:: ErrorOutputType :: HumanReadable ( kind) => {
13911393 let ( short, color_config) = kind. unzip ( ) ;
1392- Box :: new ( EmitterWriter :: stderr ( color_config, None , short, false ) )
1394+ Box :: new ( EmitterWriter :: stderr ( color_config, None , short, false , None ) )
13931395 }
13941396 config:: ErrorOutputType :: Json { pretty, json_rendered } =>
13951397 Box :: new ( JsonEmitter :: basic ( pretty, json_rendered) ) ,
0 commit comments