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:
parent
d5262a9452
commit
2c77f3e9c5
4 changed files with 17 additions and 22 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue