@@ -241,7 +241,7 @@ fn run_compiler(
241
241
mut args : Vec < String > ,
242
242
target_crate : bool ,
243
243
callbacks : & mut ( dyn rustc_driver:: Callbacks + Send ) ,
244
- using_internal_features : std:: sync:: Arc < std:: sync:: atomic:: AtomicBool >
244
+ using_internal_features : std:: sync:: Arc < std:: sync:: atomic:: AtomicBool > ,
245
245
) -> ! {
246
246
if target_crate {
247
247
// Miri needs a custom sysroot for target crates.
@@ -275,7 +275,8 @@ fn run_compiler(
275
275
// Invoke compiler, and handle return code.
276
276
let exit_code = rustc_driver:: catch_with_exit_code ( move || {
277
277
rustc_driver:: RunCompiler :: new ( & args, callbacks)
278
- . set_using_internal_features ( using_internal_features) . run ( )
278
+ . set_using_internal_features ( using_internal_features)
279
+ . run ( )
279
280
} ) ;
280
281
std:: process:: exit ( exit_code)
281
282
}
@@ -297,7 +298,8 @@ fn main() {
297
298
// If the environment asks us to actually be rustc, then do that.
298
299
if let Some ( crate_kind) = env:: var_os ( "MIRI_BE_RUSTC" ) {
299
300
// Earliest rustc setup.
300
- let using_internal_features = rustc_driver:: install_ice_hook ( rustc_driver:: DEFAULT_BUG_REPORT_URL , |_| ( ) ) ;
301
+ let using_internal_features =
302
+ rustc_driver:: install_ice_hook ( rustc_driver:: DEFAULT_BUG_REPORT_URL , |_| ( ) ) ;
301
303
rustc_driver:: init_rustc_env_logger ( & handler) ;
302
304
303
305
let target_crate = if crate_kind == "target" {
@@ -318,7 +320,8 @@ fn main() {
318
320
}
319
321
320
322
// Add an ICE bug report hook.
321
- let using_internal_features = rustc_driver:: install_ice_hook ( "https://github.com/rust-lang/miri/issues/new" , |_| ( ) ) ;
323
+ let using_internal_features =
324
+ rustc_driver:: install_ice_hook ( "https://github.com/rust-lang/miri/issues/new" , |_| ( ) ) ;
322
325
323
326
// Init loggers the Miri way.
324
327
init_early_loggers ( & handler) ;
@@ -581,5 +584,10 @@ fn main() {
581
584
582
585
debug ! ( "rustc arguments: {:?}" , rustc_args) ;
583
586
debug ! ( "crate arguments: {:?}" , miri_config. args) ;
584
- run_compiler ( rustc_args, /* target_crate: */ true , & mut MiriCompilerCalls { miri_config } , using_internal_features)
587
+ run_compiler (
588
+ rustc_args,
589
+ /* target_crate: */ true ,
590
+ & mut MiriCompilerCalls { miri_config } ,
591
+ using_internal_features,
592
+ )
585
593
}
0 commit comments