Skip to content

Commit 2001e74

Browse files
committed
Inline ActiveGuardDrop::drop_and_maybe_poison.
To fix a small perf regression from #153471.
1 parent 3b1b0ef commit 2001e74

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

compiler/rustc_query_impl/src/execution.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ where
157157
this.drop_and_maybe_poison(/* poison */ false);
158158
}
159159

160+
#[inline(always)]
160161
fn drop_and_maybe_poison(&mut self, poison: bool) {
161162
let status = {
162163
let mut shard = self.state.active.lock_shard_by_hash(self.key_hash);

0 commit comments

Comments
 (0)