diff options
| author | Luis Cardoso <61982523+LuisCardosoOliveira@users.noreply.github.com> | 2022-08-24 17:15:08 +0200 |
|---|---|---|
| committer | Luis Cardoso <61982523+LuisCardosoOliveira@users.noreply.github.com> | 2022-08-26 16:10:11 +0200 |
| commit | 2c77f3e9c5804edc0bb520c7b4774424cea6beb0 (patch) | |
| tree | c28579cb1f13a93c8614a6a71d6154b10e0bf202 /compiler/rustc_codegen_ssa/src | |
| parent | d5262a945246a624113faaadbbdae4ec5013c862 (diff) | |
| download | rust-2c77f3e9c5804edc0bb520c7b4774424cea6beb0.tar.gz rust-2c77f3e9c5804edc0bb520c7b4774424cea6beb0.zip | |
translations(rustc_session): migrate check_expected_reuse
This commit migrates the errors in the function check_expected_reuse to use the new SessionDiagnostic. It also does some small refactor for the IncorrectCguReuseType to include the 'at least' word in the fluent translation file
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/write.rs | 2 |
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(); |
