@@ -17,7 +17,8 @@ use ui_test::custom_flags::Flag;
17
17
use ui_test:: custom_flags:: edition:: Edition ;
18
18
use ui_test:: custom_flags:: rustfix:: RustfixMode ;
19
19
use ui_test:: spanned:: Spanned ;
20
- use ui_test:: { Args , CommandBuilder , Config , Match , error_on_output_conflict, status_emitter} ;
20
+ use ui_test:: status_emitter:: StatusEmitter ;
21
+ use ui_test:: { Args , CommandBuilder , Config , Match , error_on_output_conflict} ;
21
22
22
23
use std:: collections:: { BTreeMap , HashMap } ;
23
24
use std:: env:: { self , set_var, var_os} ;
@@ -217,7 +218,7 @@ fn run_ui(cx: &TestContext) {
217
218
vec ! [ config] ,
218
219
ui_test:: default_file_filter,
219
220
ui_test:: default_per_file_config,
220
- status_emitter :: Text :: from ( cx. args . format ) ,
221
+ Box :: < dyn StatusEmitter > :: from ( cx. args . format ) ,
221
222
)
222
223
. unwrap ( ) ;
223
224
}
@@ -233,7 +234,7 @@ fn run_internal_tests(cx: &TestContext) {
233
234
vec ! [ config] ,
234
235
ui_test:: default_file_filter,
235
236
ui_test:: default_per_file_config,
236
- status_emitter :: Text :: from ( cx. args . format ) ,
237
+ Box :: < dyn StatusEmitter > :: from ( cx. args . format ) ,
237
238
)
238
239
. unwrap ( ) ;
239
240
}
@@ -257,7 +258,7 @@ fn run_ui_toml(cx: &TestContext) {
257
258
. envs
258
259
. push ( ( "CLIPPY_CONF_DIR" . into ( ) , Some ( path. parent ( ) . unwrap ( ) . into ( ) ) ) ) ;
259
260
} ,
260
- status_emitter :: Text :: from ( cx. args . format ) ,
261
+ Box :: < dyn StatusEmitter > :: from ( cx. args . format ) ,
261
262
)
262
263
. unwrap ( ) ;
263
264
}
@@ -304,7 +305,7 @@ fn run_ui_cargo(cx: &TestContext) {
304
305
. then ( || ui_test:: default_any_file_filter ( path, config) && !ignored_32bit ( path) )
305
306
} ,
306
307
|_config, _file_contents| { } ,
307
- status_emitter :: Text :: from ( cx. args . format ) ,
308
+ Box :: < dyn StatusEmitter > :: from ( cx. args . format ) ,
308
309
)
309
310
. unwrap ( ) ;
310
311
}
0 commit comments