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(
&self,
db: &dyn HirDatabase,
r#trait: Trait,
trait_: Trait,
args: &[Type],
alias: TypeAlias,
) -> 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())
.fill(args.iter().map(|t| t.ty.value.clone()))
.build();