Add attribute support to generic lifetime and type parameters.

I am using `ThinAttributes` rather than a vector for attributes
attached to generics, since I expect almost all lifetime and types
parameters to not carry any attributes.
This commit is contained in:
Felix S. Klock II
2016-05-17 18:51:45 +02:00
parent f2c53ea66b
commit 4c37ad6607
8 changed files with 85 additions and 14 deletions

View File

@@ -536,7 +536,7 @@ impl<'a> TraitDef<'a> {
bounds.push((*declared_bound).clone());
}
cx.typaram(self.span, ty_param.ident, P::from_vec(bounds), None)
cx.typaram(self.span, ty_param.ident, vec![], P::from_vec(bounds), None)
}));
// and similarly for where clauses