diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-07 16:11:40 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-09 15:25:45 +1100 |
| commit | f7b3e39502783c82d4a8d9e02f59aa4268d15dbf (patch) | |
| tree | ec181e78c1795cb42e8d5cfcea8225894ce839f9 /compiler/rustc_query_impl/src | |
| parent | ef934d9b632b8ac00276558824664c104b92b5f0 (diff) | |
| download | rust-f7b3e39502783c82d4a8d9e02f59aa4268d15dbf.tar.gz rust-f7b3e39502783c82d4a8d9e02f59aa4268d15dbf.zip | |
Simplify `tls::enter_context`.
Diffstat (limited to 'compiler/rustc_query_impl/src')
| -rw-r--r-- | compiler/rustc_query_impl/src/plumbing.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index 4dea03c1ef6..49309db564e 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -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) }) }) |
