diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-01-22 14:13:14 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-01-23 09:38:58 +0000 |
| commit | d7b39401dd98b771fd508a252fc96937aec0eef3 (patch) | |
| tree | d05d1c26b3ab7363fd72c0dbb73c5c0ba32f06da | |
| parent | 1da4eb3f8b878ad1d93948a91333baf83347e03f (diff) | |
| download | rust-d7b39401dd98b771fd508a252fc96937aec0eef3.tar.gz rust-d7b39401dd98b771fd508a252fc96937aec0eef3.zip | |
Remove RunCompiler
It has become nothing other than a wrapper around run_compiler.
| -rw-r--r-- | src/driver.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/driver.rs b/src/driver.rs index b3bfec42720..68edefd3095 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -236,7 +236,7 @@ pub fn main() { let mut args: Vec<String> = orig_args.clone(); pass_sysroot_env_if_given(&mut args, sys_root_env); - rustc_driver::RunCompiler::new(&args, &mut DefaultCallbacks).run(); + rustc_driver::run_compiler(&args, &mut DefaultCallbacks); return Ok(()); } @@ -295,9 +295,9 @@ pub fn main() { let clippy_enabled = !cap_lints_allow && relevant_package && !info_query; if clippy_enabled { args.extend(clippy_args); - rustc_driver::RunCompiler::new(&args, &mut ClippyCallbacks { clippy_args_var }).run(); + rustc_driver::run_compiler(&args, &mut ClippyCallbacks { clippy_args_var }); } else { - rustc_driver::RunCompiler::new(&args, &mut RustcCallbacks { clippy_args_var }).run(); + rustc_driver::run_compiler(&args, &mut RustcCallbacks { clippy_args_var }); } Ok(()) })) |
