Use ThinVec
in ast::WhereClause
.
This commit is contained in:
parent
dd7aff5cc5
commit
068db466e8
6 changed files with 92 additions and 76 deletions
|
@ -9,6 +9,7 @@ use rustc_expand::base::ExtCtxt;
|
|||
use rustc_span::source_map::{respan, DUMMY_SP};
|
||||
use rustc_span::symbol::{kw, Ident, Symbol};
|
||||
use rustc_span::Span;
|
||||
use thin_vec::ThinVec;
|
||||
|
||||
/// A path, e.g., `::std::option::Option::<i32>` (global). Has support
|
||||
/// for type parameters.
|
||||
|
@ -185,7 +186,11 @@ impl Bounds {
|
|||
|
||||
Generics {
|
||||
params,
|
||||
where_clause: ast::WhereClause { has_where_token: false, predicates: Vec::new(), span },
|
||||
where_clause: ast::WhereClause {
|
||||
has_where_token: false,
|
||||
predicates: ThinVec::new(),
|
||||
span,
|
||||
},
|
||||
span,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue