Don't use raw identifiers

This commit is contained in:
Lukas Wirth 2020-11-26 21:44:17 +01:00
parent fc0354b280
commit 6501c9445e

View file

@ -1420,11 +1420,11 @@ impl Type {
pub fn normalize_trait_assoc_type( pub fn normalize_trait_assoc_type(
&self, &self,
db: &dyn HirDatabase, db: &dyn HirDatabase,
r#trait: Trait, trait_: Trait,
args: &[Type], args: &[Type],
alias: TypeAlias, alias: TypeAlias,
) -> Option<Type> { ) -> Option<Type> {
let subst = Substs::build_for_def(db, r#trait.id) let subst = Substs::build_for_def(db, trait_.id)
.push(self.ty.value.clone()) .push(self.ty.value.clone())
.fill(args.iter().map(|t| t.ty.value.clone())) .fill(args.iter().map(|t| t.ty.value.clone()))
.build(); .build();