Utilize AccumulateVec to avoid heap allocations in mk_{substs, type_list, tup} calls.
This commit is contained in:
parent
a4f7ba376e
commit
982a48575b
35 changed files with 193 additions and 144 deletions
|
@ -670,7 +670,7 @@ impl Clean<TyParamBound> for ty::BuiltinBound {
|
|||
Some(tcx) => tcx,
|
||||
None => return RegionBound(Lifetime::statik())
|
||||
};
|
||||
let empty = Substs::empty(tcx);
|
||||
let empty = tcx.intern_substs(&[]);
|
||||
let (did, path) = match *self {
|
||||
ty::BoundSend =>
|
||||
(tcx.lang_items.send_trait().unwrap(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue