File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
crates/environ/src/collections Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 2828 V : Clone ,
2929{
3030 /// Same as [`cranelift_entity::SecondaryMap::new`].
31+ ///
32+ /// XXX: `Clone::clone(&<V as Default>::default())` should never allocate.
3133 pub fn new ( ) -> Self
3234 where
3335 V : Default ,
3840 }
3941
4042 /// Same as [`cranelift_entity::SecondaryMap::try_with_capacity`].
43+ ///
44+ /// XXX: `Clone::clone(&<V as Default>::default())` should never allocate.
4145 pub fn with_capacity ( capacity : usize ) -> Result < Self , OutOfMemory >
4246 where
4347 V : Default ,
4852 }
4953
5054 /// Same as [`cranelift_entity::SecondaryMap::with_default`].
55+ ///
56+ /// XXX: `Clone::clone(&default)` should never allocate.
5157 pub fn with_default ( default : V ) -> Self {
5258 Self {
5359 inner : Inner :: with_default ( default) ,
You can’t perform that action at this time.
0 commit comments