about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-03-27 22:58:25 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-05-08 23:13:04 -0400
commitebbc94957555350cdc71c4c853de430119f59f9f (patch)
tree0139625b2e08d421510ce7bf03064fbf3f256dae /compiler/rustc_errors/src
parent96509b483589e8d9ae98d1c075dccef184c8be30 (diff)
downloadrust-ebbc94957555350cdc71c4c853de430119f59f9f.tar.gz
rust-ebbc94957555350cdc71c4c853de430119f59f9f.zip
Note why `Handler::fatal` is different from `Sesssion::fatal`
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index cbfb5f951b2..dc1664bb2ba 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -692,6 +692,7 @@ impl Handler {
         db
     }
 
+    // NOTE: intentionally doesn't raise an error so rustc_codegen_ssa only reports fatal errors in the main thread
     pub fn fatal(&self, msg: &str) -> FatalError {
         self.inner.borrow_mut().fatal(msg)
     }