1
Fork 0

Refactor hir::GenericParam as a struct

This commit is contained in:
varkor 2018-05-26 00:27:54 +01:00
parent d643946550
commit 82dba3d419
23 changed files with 710 additions and 572 deletions

View file

@ -568,7 +568,8 @@ impl<'a> TraitDef<'a> {
bounds.push((*declared_bound).clone());
}
GenericParamAST::Type(cx.typaram(self.span, ty_param.ident, vec![], bounds, None))
let ty_param = cx.typaram(self.span, ty_param.ident, vec![], bounds, None);
GenericParamAST::Type(ty_param)
}
}
}));