Skip to content

Commit 8b5a5da

Browse files
committed
Rename many DiagCtxt arguments.
1 parent b60e208 commit 8b5a5da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/concurrency_limiter.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl ConcurrencyLimiter {
4646
}
4747
}
4848

49-
pub(super) fn acquire(&mut self, handler: &rustc_errors::DiagCtxt) -> ConcurrencyLimiterToken {
49+
pub(super) fn acquire(&mut self, dcx: &rustc_errors::DiagCtxt) -> ConcurrencyLimiterToken {
5050
let mut state = self.state.lock().unwrap();
5151
loop {
5252
state.assert_invariants();
@@ -64,7 +64,7 @@ impl ConcurrencyLimiter {
6464
// Make sure to drop the mutex guard first to prevent poisoning the mutex.
6565
drop(state);
6666
if let Some(err) = err {
67-
handler.fatal(err);
67+
dcx.fatal(err);
6868
} else {
6969
// The error was already emitted, but compilation continued. Raise a silent
7070
// fatal error.

0 commit comments

Comments
 (0)