File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -346,6 +346,8 @@ fn main() {
346
346
// (`install_ice_hook` might change `RUST_BACKTRACE`.)
347
347
let env_snapshot = env:: vars_os ( ) . collect :: < Vec < _ > > ( ) ;
348
348
349
+ let args = rustc_driver:: args:: raw_args ( & early_dcx) . unwrap_or_else ( |_| std:: process:: exit ( rustc_driver:: EXIT_FAILURE ) ) ;
350
+
349
351
// If the environment asks us to actually be rustc, then do that.
350
352
if let Some ( crate_kind) = env:: var_os ( "MIRI_BE_RUSTC" ) {
351
353
// Earliest rustc setup.
@@ -363,7 +365,7 @@ fn main() {
363
365
364
366
// We cannot use `rustc_driver::main` as we need to adjust the CLI arguments.
365
367
run_compiler (
366
- env :: args ( ) . collect ( ) ,
368
+ args,
367
369
target_crate,
368
370
& mut MiriBeRustCompilerCalls { target_crate } ,
369
371
using_internal_features,
@@ -386,7 +388,7 @@ fn main() {
386
388
387
389
// If user has explicitly enabled/disabled isolation
388
390
let mut isolation_enabled: Option < bool > = None ;
389
- for arg in env :: args ( ) {
391
+ for arg in args {
390
392
if rustc_args. is_empty ( ) {
391
393
// Very first arg: binary name.
392
394
rustc_args. push ( arg) ;
You can’t perform that action at this time.
0 commit comments