Rollup merge of #119600 - aDotInTheVoid:comment-fix, r=compiler-errors
Remove outdated references to librustc_middle
The relevant comment is now in 791a53f380/compiler/rustc_middle/src/tests.rs (L3-L13)
This commit is contained in:
commit
ca36ed27be
7 changed files with 9 additions and 10 deletions
|
@ -645,7 +645,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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue