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 @@ -291,6 +291,8 @@ fn main() {
291
291
// (`install_ice_hook` might change `RUST_BACKTRACE`.)
292
292
let env_snapshot = env:: vars_os ( ) . collect :: < Vec < _ > > ( ) ;
293
293
294
+ let args = rustc_driver:: args:: raw_args ( & handler) . unwrap_or_else ( |_| std:: process:: exit ( rustc_driver:: EXIT_FAILURE ) ) ;
295
+
294
296
// If the environment asks us to actually be rustc, then do that.
295
297
if let Some ( crate_kind) = env:: var_os ( "MIRI_BE_RUSTC" ) {
296
298
// Earliest rustc setup.
@@ -307,7 +309,7 @@ fn main() {
307
309
308
310
// We cannot use `rustc_driver::main` as we need to adjust the CLI arguments.
309
311
run_compiler (
310
- env :: args ( ) . collect ( ) ,
312
+ args,
311
313
target_crate,
312
314
& mut MiriBeRustCompilerCalls { target_crate } ,
313
315
)
@@ -328,7 +330,7 @@ fn main() {
328
330
329
331
// If user has explicitly enabled/disabled isolation
330
332
let mut isolation_enabled: Option < bool > = None ;
331
- for arg in env :: args ( ) {
333
+ for arg in args {
332
334
if rustc_args. is_empty ( ) {
333
335
// Very first arg: binary name.
334
336
rustc_args. push ( arg) ;
You can’t perform that action at this time.
0 commit comments