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_codegen_ssa/src/back/write.rs | |
| 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_codegen_ssa/src/back/write.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/write.rs | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs index 587eed62956..90d48d6ee7e 100644 --- a/compiler/rustc_codegen_ssa/src/back/write.rs +++ b/compiler/rustc_codegen_ssa/src/back/write.rs @@ -1883,7 +1883,11 @@ impl Translate for SharedEmitter { } impl Emitter for SharedEmitter { - fn emit_diagnostic(&mut self, mut diag: rustc_errors::DiagInner) { + fn emit_diagnostic( + &mut self, + mut diag: rustc_errors::DiagInner, + _registry: &rustc_errors::registry::Registry, + ) { // Check that we aren't missing anything interesting when converting to // the cut-down local `DiagInner`. assert_eq!(diag.span, MultiSpan::new()); | 
