diff options
| author | bors <bors@rust-lang.org> | 2025-07-04 10:23:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-07-04 10:23:18 +0000 |
| commit | 556d20a834126d2d0ac20743b9792b8474d6d03c (patch) | |
| tree | 5818857dedfe725669bafe6641266a9055877de4 /compiler/rustc_interface/src/passes.rs | |
| parent | 1b61d43bdbf875183b1f436302d62ff93f9a6bba (diff) | |
| parent | 992fa62118d61c0df27cc0f8d5e22cb7d5bc51c0 (diff) | |
| download | rust-556d20a834126d2d0ac20743b9792b8474d6d03c.tar.gz rust-556d20a834126d2d0ac20743b9792b8474d6d03c.zip | |
Auto merge of #143247 - cjgillot:metadata-no-red, r=petrochenkov
Avoid depending on forever-red DepNode when encoding metadata. Split from https://github.com/rust-lang/rust/pull/114669 for perf r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_interface/src/passes.rs')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 3fe7c5e4286..a438cde018c 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -871,8 +871,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; |
