diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-16 15:26:42 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-22 08:03:47 +1100 |
| commit | 9919c3dab3e4eabe466612de5f6c472e3e27ceb6 (patch) | |
| tree | 3b2d175de30b4f3192c2d04bc4790e13a07c46c1 /compiler/rustc_driver_impl | |
| parent | 203b4332bb3da3af092344b3459416aeab4c90ef (diff) | |
| download | rust-9919c3dab3e4eabe466612de5f6c472e3e27ceb6.tar.gz rust-9919c3dab3e4eabe466612de5f6c472e3e27ceb6.zip | |
Remove `EarlyDiagCtxt::abort_if_errors`.
Its one use isn't necessary, because it's not possible for errors to have been emitted at that point.
Diffstat (limited to 'compiler/rustc_driver_impl')
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index 60f11b1bdd4..9b2d760282f 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -349,11 +349,10 @@ fn run_compiler( }, }; - callbacks.config(&mut config); - - default_early_dcx.abort_if_errors(); drop(default_early_dcx); + callbacks.config(&mut config); + interface::run_compiler(config, |compiler| { let sess = &compiler.sess; let codegen_backend = &*compiler.codegen_backend; |
