1
Fork 0

Use ThinVec in ast::Generics and related types.

This commit is contained in:
Nicholas Nethercote 2022-11-22 09:17:20 +11:00
parent 06228d6e93
commit dd7aff5cc5
12 changed files with 97 additions and 97 deletions

View file

@ -125,7 +125,7 @@ impl<'a> ExtCtxt<'a> {
pub fn poly_trait_ref(&self, span: Span, path: ast::Path) -> ast::PolyTraitRef {
ast::PolyTraitRef {
bound_generic_params: Vec::new(),
bound_generic_params: ThinVec::new(),
trait_ref: self.trait_ref(path),
span,
}