1
Fork 0

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
This commit is contained in:
Luis Cardoso 2022-08-24 17:15:08 +02:00
parent d5262a9452
commit 2c77f3e9c5
4 changed files with 17 additions and 22 deletions

View file

@ -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();