about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorAlona Enraght-Moony <code@alona.page>2024-01-05 02:52:37 +0000
committerAlona Enraght-Moony <code@alona.page>2024-01-05 16:34:52 +0000
commit16e117cf964064f8f70ab2e55f24ed37e1e9a4ee (patch)
treec4ddc656548390e683268be013ab52631d31a29c /compiler/rustc_errors/src
parentf688dd684faca5b31b156fac2c6e0ae81fc9bc90 (diff)
downloadrust-16e117cf964064f8f70ab2e55f24ed37e1e9a4ee.tar.gz
rust-16e117cf964064f8f70ab2e55f24ed37e1e9a4ee.zip
Remove outdated references to `librustc_middle`.
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 6707e17e90f..7a85f3be74e 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -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
     }