diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-02-19 16:58:18 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-03-05 08:53:14 +0000 |
| commit | c696d4c3238ed71f0acedad7c402924fb0bdde32 (patch) | |
| tree | 1cfb6a86250f0d0028fc2b21775fe7211812bd8f /compiler/rustc_interface/src | |
| parent | 3845be6b376f405671850dd37c92864aac7b07c2 (diff) | |
| download | rust-c696d4c3238ed71f0acedad7c402924fb0bdde32.tar.gz rust-c696d4c3238ed71f0acedad7c402924fb0bdde32.zip | |
Remove a use of feed_local_crate and make it fail if used within queries
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 66140168759..eba707a4938 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -608,6 +608,8 @@ 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 = resolver_for_lowering; + providers.stripped_cfg_items = + |tcx, _| tcx.arena.alloc_from_iter(tcx.resolutions(()).stripped_cfg_items.steal()); providers.early_lint_checks = early_lint_checks; proc_macro_decls::provide(providers); rustc_const_eval::provide(providers); |
