Make assoc_resolutions always have a Substitution

This commit is contained in:
Florian Diebold 2022-12-10 17:05:33 +01:00
parent a3ea20a142
commit d3cb032f7e
4 changed files with 16 additions and 26 deletions

View file

@ -502,11 +502,7 @@ impl SourceAnalyzer {
}
}
AssocItemId::ConstId(const_id) => {
if let Some(subs) = subs {
self.resolve_impl_const_or_trait_def(db, const_id, subs).into()
} else {
assoc
}
self.resolve_impl_const_or_trait_def(db, const_id, subs).into()
}
_ => assoc,
};