Move Generics to hir_def
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user