We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 409e0ac + ad7c4cf commit 6698106Copy full SHA for 6698106
src/tools/rust-analyzer/crates/hir-ty/src/chalk_db.rs
@@ -552,7 +552,7 @@ impl ChalkContext<'_> {
552
553
let block_impls = iter::successors(self.block, |&block_id| {
554
cov_mark::hit!(block_local_impls);
555
- self.db.block_def_map(block_id).parent().and_then(|module| module.containing_block())
+ block_id.loc(self.db).module.containing_block()
556
})
557
.inspect(|&block_id| {
558
// make sure we don't search the same block twice
0 commit comments