Simplify tls::enter_context
.
This commit is contained in:
parent
ef934d9b63
commit
f7b3e39502
5 changed files with 6 additions and 6 deletions
|
@ -124,7 +124,7 @@ impl QueryContext for QueryCtxt<'_> {
|
|||
};
|
||||
|
||||
// Use the `ImplicitCtxt` while we execute the query.
|
||||
tls::enter_context(&new_icx, |_| {
|
||||
tls::enter_context(&new_icx, || {
|
||||
rustc_data_structures::stack::ensure_sufficient_stack(compute)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue