Skip to content

Commit fea2ad8

Browse files
Rollup merge of rust-lang#77340 - pickfire:patch-9, r=kennytm
Alloc vec use imported path mem::ManuallyDrop::new -> ManuallyDrop::new cc @the8472
2 parents 054ba3d + f9b625f commit fea2ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ where
22882288
.try_fold::<_, _, Result<_, !>>(sink, write_in_place_with_drop(dst_end))
22892289
.unwrap();
22902290
// iteration succeeded, don't drop head
2291-
let dst = mem::ManuallyDrop::new(sink).dst;
2291+
let dst = ManuallyDrop::new(sink).dst;
22922292

22932293
let src = unsafe { iterator.as_inner().as_into_iter() };
22942294
// check if SourceIter contract was upheld

0 commit comments

Comments
 (0)