diff options
| author | bors <bors@rust-lang.org> | 2022-05-28 14:30:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-28 14:30:25 +0000 |
| commit | 4f39fb1f34d4bd25d9ce96afe7b2d109f073e286 (patch) | |
| tree | 73a66a95c0b507e918eebbe19541db7a6956874d /compiler/rustc_middle/src/ty/context.rs | |
| parent | 68314177e70017c08f6cdf295631bb508f9f85bc (diff) | |
| parent | cd76f2e6090c6be8022a546e8a0238efa439dbfa (diff) | |
Auto merge of #97383 - dingxiangfei2009:restore-region-scope-tree-query, r=dingxiangfei2009
Try to cache region_scope_tree as a query This PR will attempt to restore `region_scope_tree` as a query so that caching works again. It seems that `region_scope_tree` could be re-computed for nested items after all, which could explain the performance regression introduced by #95563. cc `@Mark-Simulacrum` `@pnkfelix` I will try to trigger a perf run here.
Diffstat (limited to 'compiler/rustc_middle/src/ty/context.rs')
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index 6b92a4c0a2e..3c08db5dc68 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -6,7 +6,6 @@ use crate::hir::place::Place as HirPlace; use crate::infer::canonical::{Canonical, CanonicalVarInfo, CanonicalVarInfos}; use crate::lint::{struct_lint_level, LintDiagnosticBuilder, LintLevelSource}; use crate::middle::codegen_fn_attrs::CodegenFnAttrs; -use crate::middle::region::ScopeTree; use crate::middle::resolve_lifetime::{self, LifetimeScopeForPath}; use crate::middle::stability; use crate::mir::interpret::{self, Allocation, ConstAllocation, ConstValue, Scalar}; @@ -538,12 +537,6 @@ pub struct TypeckResults<'tcx> { /// issue by fake reading `t`. pub closure_fake_reads: FxHashMap<DefId, Vec<(HirPlace<'tcx>, FakeReadCause, hir::HirId)>>, - /// Tracks critical information about regions in a body. - /// This includes containment relationship between regions, - /// liveness relationship between variables and regions and - /// information about yield points. - pub region_scope_tree: ScopeTree, - /// Tracks the rvalue scoping rules which defines finer scoping for rvalue expressions /// by applying extended parameter rules. /// Details may be find in `rustc_typeck::check::rvalue_scopes`. @@ -586,7 +579,6 @@ impl<'tcx> TypeckResults<'tcx> { concrete_opaque_types: Default::default(), closure_min_captures: Default::default(), closure_fake_reads: Default::default(), - region_scope_tree: Default::default(), rvalue_scopes: Default::default(), generator_interior_types: ty::Binder::dummy(Default::default()), treat_byte_string_as_slice: Default::default(), |
