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.
1 parent 10c50b1 commit f98e311Copy full SHA for f98e311
crates/ra_ide_db/src/defs.rs
@@ -89,8 +89,7 @@ impl Definition {
89
}
90
Definition::Macro(m) => Into::<ModuleId>::into(m.module(db)?).resolver(db),
91
Definition::SelfType(imp) => Into::<ImplId>::into(imp.clone()).resolver(db),
92
- // it's possible, read probable, that other arms of this are also unreachable
93
- Definition::Local(_local) => unreachable!(),
+ Definition::Local(local) => Into::<DefWithBodyId>::into(local.parent(db)).resolver(db),
94
Definition::TypeParam(tp) => Into::<ModuleId>::into(tp.module(db)).resolver(db),
95
})
96
0 commit comments