Rollup merge of #77340 - pickfire:patch-9, r=kennytm
Alloc vec use imported path mem::ManuallyDrop::new -> ManuallyDrop::new cc @the8472
This commit is contained in:
commit
fea2ad8a0a
|
@ -2288,7 +2288,7 @@ where
|
||||||
.try_fold::<_, _, Result<_, !>>(sink, write_in_place_with_drop(dst_end))
|
.try_fold::<_, _, Result<_, !>>(sink, write_in_place_with_drop(dst_end))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
// iteration succeeded, don't drop head
|
// iteration succeeded, don't drop head
|
||||||
let dst = mem::ManuallyDrop::new(sink).dst;
|
let dst = ManuallyDrop::new(sink).dst;
|
||||||
|
|
||||||
let src = unsafe { iterator.as_inner().as_into_iter() };
|
let src = unsafe { iterator.as_inner().as_into_iter() };
|
||||||
// check if SourceIter contract was upheld
|
// check if SourceIter contract was upheld
|
||||||
|
|
Loading…
Reference in New Issue