diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-02-05 06:37:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-05 06:37:14 +0100 |
| commit | ca36ed27be0842d89e09082759187c6e5f3b00d8 (patch) | |
| tree | 2f7d14eede655cb4bbdae71a5c1030e347f2e50a /compiler/rustc_errors | |
| parent | 7158b3d3fbae9d318b73fea261f2e3732491c7ee (diff) | |
| parent | 16e117cf964064f8f70ab2e55f24ed37e1e9a4ee (diff) | |
| download | rust-ca36ed27be0842d89e09082759187c6e5f3b00d8.tar.gz rust-ca36ed27be0842d89e09082759187c6e5f3b00d8.zip | |
Rollup merge of #119600 - aDotInTheVoid:comment-fix, r=compiler-errors
Remove outdated references to librustc_middle The relevant comment is now in https://github.com/rust-lang/rust/blob/791a53f380d5cf800191f25941c94ace5099876e/compiler/rustc_middle/src/tests.rs#L3-L13
Diffstat (limited to 'compiler/rustc_errors')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index b2bd4d8eb95..9ec636dcc9c 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -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 } |
