Simplify tls::enter_context.
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user