diff options
-rw-r--r-- | crates/ra_ide_db/src/defs.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_ide_db/src/defs.rs b/crates/ra_ide_db/src/defs.rs index b07395a64..bc6e89cbc 100644 --- a/crates/ra_ide_db/src/defs.rs +++ b/crates/ra_ide_db/src/defs.rs | |||
@@ -89,8 +89,7 @@ impl Definition { | |||
89 | } | 89 | } |
90 | Definition::Macro(m) => Into::<ModuleId>::into(m.module(db)?).resolver(db), | 90 | Definition::Macro(m) => Into::<ModuleId>::into(m.module(db)?).resolver(db), |
91 | Definition::SelfType(imp) => Into::<ImplId>::into(imp.clone()).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 | 92 | Definition::Local(local) => Into::<DefWithBodyId>::into(local.parent(db)).resolver(db), |
93 | Definition::Local(_local) => unreachable!(), | ||
94 | Definition::TypeParam(tp) => Into::<ModuleId>::into(tp.module(db)).resolver(db), | 93 | Definition::TypeParam(tp) => Into::<ModuleId>::into(tp.module(db)).resolver(db), |
95 | }) | 94 | }) |
96 | } | 95 | } |