mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Move Generics to hir_def
This commit is contained in:
parent
0e771915fa
commit
e1a6e38767
6 changed files with 247 additions and 170 deletions
|
@ -369,7 +369,7 @@ impl Resolver {
|
|||
|
||||
pub(crate) fn generic_def(&self) -> Option<crate::generics::GenericDef> {
|
||||
self.scopes.iter().find_map(|scope| match scope {
|
||||
Scope::GenericParams(params) => Some(params.def),
|
||||
Scope::GenericParams(params) => Some(params.def.into()),
|
||||
_ => None,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue