@@ -1055,13 +1055,15 @@ fn default_emitter(
1055
1055
Some ( source_map. clone ( ) ) ,
1056
1056
short,
1057
1057
sopts. debugging_opts . teach ,
1058
+ sopts. debugging_opts . terminal_width ,
1058
1059
) ,
1059
1060
Some ( dst) => EmitterWriter :: new (
1060
1061
dst,
1061
1062
Some ( source_map. clone ( ) ) ,
1062
1063
short,
1063
1064
false , // no teach messages when writing to a buffer
1064
1065
false , // no colors when writing to a buffer
1066
+ None , // no terminal width
1065
1067
) ,
1066
1068
} ;
1067
1069
Box :: new ( emitter. ui_testing ( sopts. debugging_opts . ui_testing ) )
@@ -1375,7 +1377,7 @@ pub fn early_error(output: config::ErrorOutputType, msg: &str) -> ! {
1375
1377
let emitter: Box < dyn Emitter + sync:: Send > = match output {
1376
1378
config:: ErrorOutputType :: HumanReadable ( kind) => {
1377
1379
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 ) )
1379
1381
}
1380
1382
config:: ErrorOutputType :: Json { pretty, json_rendered } =>
1381
1383
Box :: new ( JsonEmitter :: basic ( pretty, json_rendered) ) ,
@@ -1389,7 +1391,7 @@ pub fn early_warn(output: config::ErrorOutputType, msg: &str) {
1389
1391
let emitter: Box < dyn Emitter + sync:: Send > = match output {
1390
1392
config:: ErrorOutputType :: HumanReadable ( kind) => {
1391
1393
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 ) )
1393
1395
}
1394
1396
config:: ErrorOutputType :: Json { pretty, json_rendered } =>
1395
1397
Box :: new ( JsonEmitter :: basic ( pretty, json_rendered) ) ,
0 commit comments