summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-08-31 14:29:52 +0200
committerGitHub <noreply@github.com>2022-08-31 14:29:52 +0200
commit24922b7a828361399aeed73a802e786f035a6d4f (patch)
treeb510e0c9bf7cb4ea567e0cfbced93fba2dc8c9d9 /compiler/rustc_codegen_ssa/src/back
parent6c4bda6de456460520aa450d7ed10a1b3d9fa205 (diff)
parent2c77f3e9c5804edc0bb520c7b4774424cea6beb0 (diff)
downloadrust-24922b7a828361399aeed73a802e786f035a6d4f.tar.gz
rust-24922b7a828361399aeed73a802e786f035a6d4f.zip
Rollup merge of #100753 - LuisCardosoOliveira:translation-migrate-session, r=davidtwco
translations(rustc_session): migrates `rustc_session` to use `SessionDiagnostic` - Pt. 1

## Description

This is the first PR for the migration of the module `rustc_session`. You can follow my progress [here](https://github.com/rust-lang/rust/issues/100717#issuecomment-1220279883).

The PR migrates the files `cgu_reuse_tracker` and `parse.rs` to use `SessionDiagnostic `.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/write.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs
index 2930d09d71f..68f3b19b715 100644
--- a/compiler/rustc_codegen_ssa/src/back/write.rs
+++ b/compiler/rustc_codegen_ssa/src/back/write.rs
@@ -1892,7 +1892,7 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
             }
         });
 
-        sess.cgu_reuse_tracker.check_expected_reuse(sess.diagnostic());
+        sess.cgu_reuse_tracker.check_expected_reuse(sess);
 
         sess.abort_if_errors();