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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user