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 | a77776cc1d7c599f4ff9355ffe01bad2e2b5bbad (patch) | |
| tree | da03459bc81a07b8a732063c119fd595852a977d /src/tools | |
| parent | 974db1a6e444e2b053f49a8d3242db335669acef (diff) | |
| download | rust-a77776cc1d7c599f4ff9355ffe01bad2e2b5bbad.tar.gz rust-a77776cc1d7c599f4ff9355ffe01bad2e2b5bbad.zip | |
Remove RunCompiler
It has become nothing other than a wrapper around run_compiler.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/clippy/src/driver.rs | 6 | ||||
| -rw-r--r-- | src/tools/miri/src/bin/miri.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/clippy/src/driver.rs b/src/tools/clippy/src/driver.rs index b3bfec42720..68edefd3095 100644 --- a/src/tools/clippy/src/driver.rs +++ b/src/tools/clippy/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(()) })) diff --git a/src/tools/miri/src/bin/miri.rs b/src/tools/miri/src/bin/miri.rs index e0308891759..a2e9c63f79e 100644 --- a/src/tools/miri/src/bin/miri.rs +++ b/src/tools/miri/src/bin/miri.rs @@ -373,7 +373,7 @@ fn run_compiler_and_exit( ) -> ! { // Invoke compiler, and handle return code. let exit_code = rustc_driver::catch_with_exit_code(move || { - rustc_driver::RunCompiler::new(args, callbacks).run(); + rustc_driver::run_compiler(args, callbacks); Ok(()) }); std::process::exit(exit_code) |
