File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -291,6 +291,8 @@ fn main() {
291291 // (`install_ice_hook` might change `RUST_BACKTRACE`.)
292292 let env_snapshot = env:: vars_os ( ) . collect :: < Vec < _ > > ( ) ;
293293
294+ let args = rustc_driver:: args:: raw_args ( & handler) . unwrap_or_else ( |_| std:: process:: exit ( rustc_driver:: EXIT_FAILURE ) ) ;
295+
294296 // If the environment asks us to actually be rustc, then do that.
295297 if let Some ( crate_kind) = env:: var_os ( "MIRI_BE_RUSTC" ) {
296298 // Earliest rustc setup.
@@ -307,7 +309,7 @@ fn main() {
307309
308310 // We cannot use `rustc_driver::main` as we need to adjust the CLI arguments.
309311 run_compiler (
310- env :: args ( ) . collect ( ) ,
312+ args,
311313 target_crate,
312314 & mut MiriBeRustCompilerCalls { target_crate } ,
313315 )
@@ -328,7 +330,7 @@ fn main() {
328330
329331 // If user has explicitly enabled/disabled isolation
330332 let mut isolation_enabled: Option < bool > = None ;
331- for arg in env :: args ( ) {
333+ for arg in args {
332334 if rustc_args. is_empty ( ) {
333335 // Very first arg: binary name.
334336 rustc_args. push ( arg) ;
You can’t perform that action at this time.
0 commit comments