mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 05:53:10 +00:00
Alloc vec use imported path
mem::ManuallyDrop::new -> ManuallyDrop::new
This commit is contained in:
parent
9e34b72964
commit
f9b625f8e0
@ -2288,7 +2288,7 @@ where
|
||||
.try_fold::<_, _, Result<_, !>>(sink, write_in_place_with_drop(dst_end))
|
||||
.unwrap();
|
||||
// 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() };
|
||||
// check if SourceIter contract was upheld
|
||||
|
Loading…
Reference in New Issue
Block a user