1
Fork 0

Remove outdated references to librustc_middle.

This commit is contained in:
Alona Enraght-Moony 2024-01-05 02:52:37 +00:00
parent f688dd684f
commit 16e117cf96
7 changed files with 9 additions and 10 deletions

View file

@ -639,7 +639,8 @@ impl DiagCtxt {
}
// This is here to not allow mutation of flags;
// as of this writing it's only used in tests in librustc_middle.
// as of this writing it's used in Session::consider_optimizing and
// in tests in rustc_interface.
pub fn can_emit_warnings(&self) -> bool {
self.inner.borrow_mut().flags.can_emit_warnings
}