We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DiagCtxt
1 parent b60e208 commit 8b5a5daCopy full SHA for 8b5a5da
src/concurrency_limiter.rs
@@ -46,7 +46,7 @@ impl ConcurrencyLimiter {
46
}
47
48
49
- pub(super) fn acquire(&mut self, handler: &rustc_errors::DiagCtxt) -> ConcurrencyLimiterToken {
+ pub(super) fn acquire(&mut self, dcx: &rustc_errors::DiagCtxt) -> ConcurrencyLimiterToken {
50
let mut state = self.state.lock().unwrap();
51
loop {
52
state.assert_invariants();
@@ -64,7 +64,7 @@ impl ConcurrencyLimiter {
64
// Make sure to drop the mutex guard first to prevent poisoning the mutex.
65
drop(state);
66
if let Some(err) = err {
67
- handler.fatal(err);
+ dcx.fatal(err);
68
} else {
69
// The error was already emitted, but compilation continued. Raise a silent
70
// fatal error.
0 commit comments