Skip to content

Commit

Permalink
Note why Handler::fatal is different from Sesssion::fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed May 9, 2021
1 parent 96509b4 commit ebbc949
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_errors/src/lib.rs
Expand Up @@ -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)
}
Expand Down

0 comments on commit ebbc949

Please sign in to comment.