Skip to content

Commit 8918a39

Browse files
committed
rustup: RunCompiler... -> run_compiler
1 parent 434c27a commit 8918a39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bin/mir-json-rustc-wrapper.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn get_output_path(args: &[String], use_override_crates: &HashSet<String>) -> Pa
8282
output_path: None,
8383
use_override_crates: use_override_crates.clone(),
8484
};
85-
rustc_driver::RunCompiler::new(&args, &mut callbacks).run().unwrap();
85+
rustc_driver::run_compiler(&args, &mut callbacks);
8686
callbacks.output_path.unwrap()
8787
}
8888

@@ -216,14 +216,14 @@ fn go() -> ExitCode {
216216
eprintln!("normal build - {:?}", args);
217217
// This is a normal, non-test build. Just run the build, generating a `.mir` file
218218
// alongside the normal output.
219-
rustc_driver::RunCompiler::new(
219+
rustc_driver::run_compiler(
220220
&args,
221221
&mut MirJsonCallbacks {
222222
analysis_data: None,
223223
use_override_crates: use_override_crates.clone(),
224224
export_style,
225225
},
226-
).run().unwrap();
226+
);
227227
return ExitCode::SUCCESS;
228228
},
229229
Some(x) => x,
@@ -257,7 +257,7 @@ fn go() -> ExitCode {
257257
use_override_crates: use_override_crates.clone(),
258258
export_style,
259259
};
260-
rustc_driver::RunCompiler::new(&args, &mut callbacks).run().unwrap();
260+
rustc_driver::run_compiler(&args, &mut callbacks);
261261
let data = callbacks.analysis_data
262262
.expect("failed to find main MIR path");
263263

0 commit comments

Comments
 (0)