mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 17:28:09 +00:00
Return a resolver for Definition::Local
This commit is contained in:
parent
10c50b140a
commit
f98e311617
1 changed files with 1 additions and 2 deletions
|
@ -89,8 +89,7 @@ impl Definition {
|
|||
}
|
||||
Definition::Macro(m) => Into::<ModuleId>::into(m.module(db)?).resolver(db),
|
||||
Definition::SelfType(imp) => Into::<ImplId>::into(imp.clone()).resolver(db),
|
||||
// it's possible, read probable, that other arms of this are also unreachable
|
||||
Definition::Local(_local) => unreachable!(),
|
||||
Definition::Local(local) => Into::<DefWithBodyId>::into(local.parent(db)).resolver(db),
|
||||
Definition::TypeParam(tp) => Into::<ModuleId>::into(tp.module(db)).resolver(db),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue