Move Generics to hir_def

This commit is contained in:
Aleksey Kladov 2019-11-20 12:25:02 +03:00
parent 0e771915fa
commit e1a6e38767
6 changed files with 247 additions and 170 deletions

View file

@ -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,
})
}