about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-02-15 16:14:10 +0000
committerbors <bors@rust-lang.org>2023-02-15 16:14:10 +0000
commit2d14db321b043ffc579a7461464c88d7e3f54f83 (patch)
tree90bf861bcf5e24d0de4c73b3a05791e41e25e658 /compiler/rustc_resolve/src
parent999ac5f7770bff68bd65f490990d32c3ec1faaa6 (diff)
parent065f0b222d4e23ae3d4215061c5df7d248855717 (diff)
downloadrust-2d14db321b043ffc579a7461464c88d7e3f54f83.tar.gz
rust-2d14db321b043ffc579a7461464c88d7e3f54f83.zip
Auto merge of #108006 - cjgillot:def-impl, r=oli-obk
Avoid accessing HIR when it can be avoided

Experiment to see if it helps some incremental cases.

Will be rebased once https://github.com/rust-lang/rust/pull/107942 gets merged.

r? `@ghost`
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/build_reduced_graph.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/build_reduced_graph.rs b/compiler/rustc_resolve/src/build_reduced_graph.rs
index 6d3518d53f7..5dc651638f7 100644
--- a/compiler/rustc_resolve/src/build_reduced_graph.rs
+++ b/compiler/rustc_resolve/src/build_reduced_graph.rs
@@ -987,7 +987,7 @@ impl<'a, 'b, 'tcx> BuildReducedGraphVisitor<'a, 'b, 'tcx> {
                 | DefKind::LifetimeParam
                 | DefKind::GlobalAsm
                 | DefKind::Closure
-                | DefKind::Impl
+                | DefKind::Impl { .. }
                 | DefKind::Generator,
                 _,
             )