]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #97383 - dingxiangfei2009:restore-region-scope-tree-query, r=dingxiangf...
authorbors <bors@rust-lang.org>
Sat, 28 May 2022 14:30:25 +0000 (14:30 +0000)
committerbors <bors@rust-lang.org>
Sat, 28 May 2022 14:30:25 +0000 (14:30 +0000)
commit4f39fb1f34d4bd25d9ce96afe7b2d109f073e286
tree73a66a95c0b507e918eebbe19541db7a6956874d
parent68314177e70017c08f6cdf295631bb508f9f85bc
parentcd76f2e6090c6be8022a546e8a0238efa439dbfa
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.
compiler/rustc_middle/src/query/mod.rs
compiler/rustc_mir_build/src/build/scope.rs
compiler/rustc_typeck/src/check/mod.rs
compiler/rustc_typeck/src/check/writeback.rs