1
Fork 0

Use ThinVec in ast::Impl and related types.

This commit is contained in:
Nicholas Nethercote 2022-11-22 16:32:08 +11:00
parent 068db466e8
commit 6a56c3a930
3 changed files with 9 additions and 8 deletions

View file

@ -6,6 +6,7 @@ use rustc_ast::{GenericArg, Impl, ItemKind, MetaItem};
use rustc_expand::base::{Annotatable, ExpandResult, ExtCtxt, MultiItemModifier};
use rustc_span::symbol::{sym, Ident, Symbol};
use rustc_span::Span;
use thin_vec::ThinVec;
macro path_local($x:ident) {
generic::ty::Path::new_local(sym::$x)
@ -202,7 +203,7 @@ fn inject_impl_of_structural_trait(
generics,
of_trait: Some(trait_ref),
self_ty: self_type,
items: Vec::new(),
items: ThinVec::new(),
})),
);