We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
block_def_map()
1 parent fb133c8 commit 2d99b5eCopy full SHA for 2d99b5e
crates/hir-ty/src/chalk_db.rs
@@ -553,7 +553,7 @@ impl ChalkContext<'_> {
553
554
let block_impls = iter::successors(self.block, |&block_id| {
555
cov_mark::hit!(block_local_impls);
556
- self.db.block_def_map(block_id).parent().and_then(|module| module.containing_block())
+ block_id.loc(self.db).module.containing_block()
557
})
558
.inspect(|&block_id| {
559
// make sure we don't search the same block twice
0 commit comments