about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-08-09 19:54:58 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2025-07-02 09:14:34 +0000
commit992fa62118d61c0df27cc0f8d5e22cb7d5bc51c0 (patch)
treeffb1f0e54d7fb3fa3b8074e459c59f4edf8b18d0 /compiler/rustc_interface/src
parenta0dc0b549db557245e3dc55490263fa264af5e69 (diff)
downloadrust-992fa62118d61c0df27cc0f8d5e22cb7d5bc51c0.tar.gz
rust-992fa62118d61c0df27cc0f8d5e22cb7d5bc51c0.zip
Hash resolutions.
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 201b7e2b940..8f9093e0f2b 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -850,8 +850,7 @@ pub static DEFAULT_QUERY_PROVIDERS: LazyLock<Providers> = LazyLock::new(|| {
     providers.analysis = analysis;
     providers.hir_crate = rustc_ast_lowering::lower_to_hir;
     providers.resolver_for_lowering_raw = resolver_for_lowering_raw;
-    providers.stripped_cfg_items =
-        |tcx, _| tcx.arena.alloc_from_iter(tcx.resolutions(()).stripped_cfg_items.steal());
+    providers.stripped_cfg_items = |tcx, _| &tcx.resolutions(()).stripped_cfg_items[..];
     providers.resolutions = |tcx, ()| tcx.resolver_for_lowering_raw(()).1;
     providers.early_lint_checks = early_lint_checks;
     providers.env_var_os = env_var_os;