aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_hir_def/src/body/lower.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs
index 2e433528d..961064d29 100644
--- a/crates/ra_hir_def/src/body/lower.rs
+++ b/crates/ra_hir_def/src/body/lower.rs
@@ -574,7 +574,13 @@ impl ExprCollector<'_> {
574 .filter_map(|mod_item| mod_item.downcast::<N>()) 574 .filter_map(|mod_item| mod_item.downcast::<N>())
575 .find(|tree_id| tree[*tree_id].ast_id().upcast() == id.value.upcast()) 575 .find(|tree_id| tree[*tree_id].ast_id().upcast() == id.value.upcast())
576 .unwrap_or_else(|| { 576 .unwrap_or_else(|| {
577 panic!("couldn't find inner {} item for {:?}", type_name::<N>(), id) 577 panic!(
578 "couldn't find inner {} item for {:?} (AST: `{}` - {:?})",
579 type_name::<N>(),
580 id,
581 ast.syntax(),
582 ast.syntax(),
583 )
578 }); 584 });
579 585
580 ItemTreeId::new(id.file_id, item_tree_id) 586 ItemTreeId::new(id.file_id, item_tree_id)