diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 10:15:45 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 16:06:22 +1100 |
| commit | 8b5a5daad4b9b8edfbe878a7bb6e007a90b809b9 (patch) | |
| tree | 04737f11b66d4a1375023894dbe5a54a6959f5cd | |
| parent | b60e2085493f2c966195532fc3bddcddb866ff84 (diff) | |
Rename many `DiagCtxt` arguments.
| -rw-r--r-- | src/concurrency_limiter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/concurrency_limiter.rs b/src/concurrency_limiter.rs index 1fb9d7afbc9..9678969134a 100644 --- a/src/concurrency_limiter.rs +++ b/src/concurrency_limiter.rs @@ -46,7 +46,7 @@ impl ConcurrencyLimiter { } } - pub(super) fn acquire(&mut self, handler: &rustc_errors::DiagCtxt) -> ConcurrencyLimiterToken { + pub(super) fn acquire(&mut self, dcx: &rustc_errors::DiagCtxt) -> ConcurrencyLimiterToken { let mut state = self.state.lock().unwrap(); loop { state.assert_invariants(); @@ -64,7 +64,7 @@ impl ConcurrencyLimiter { // Make sure to drop the mutex guard first to prevent poisoning the mutex. drop(state); if let Some(err) = err { - handler.fatal(err); + dcx.fatal(err); } else { // The error was already emitted, but compilation continued. Raise a silent // fatal error. |
