diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-11-09 18:30:13 +0000 | 
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-12-06 18:42:31 +0000 | 
| commit | 030545d8c3dd13735b2b88d280705d52a1ebf64d (patch) | |
| tree | 25af23c41cee1f218a45f98a5ef86c94697e7995 /compiler/rustc_interface | |
| parent | ea6f5cbd2f8271b073d7902f43b12154b4685aca (diff) | |
| download | rust-030545d8c3dd13735b2b88d280705d52a1ebf64d.tar.gz rust-030545d8c3dd13735b2b88d280705d52a1ebf64d.zip  | |
Store a single copy of the error registry in DiagCtxt
And pass this to the individual emitters when necessary.
Diffstat (limited to 'compiler/rustc_interface')
| -rw-r--r-- | compiler/rustc_interface/src/interface.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs index 3920d3077d3..71095ca8899 100644 --- a/compiler/rustc_interface/src/interface.rs +++ b/compiler/rustc_interface/src/interface.rs @@ -441,7 +441,7 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se temps_dir, }, bundle, - config.registry.clone(), + config.registry, locale_resources, config.lint_caps, target, @@ -499,7 +499,7 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se // If `f` panics, `finish_diagnostics` will run during // unwinding because of the `defer`. let sess_abort_guard = defer(|| { - compiler.sess.finish_diagnostics(&config.registry); + compiler.sess.finish_diagnostics(); }); let res = f(&compiler);  | 
