Skip to content

Commit

Permalink
Alloc vec use imported path
Browse files Browse the repository at this point in the history
mem::ManuallyDrop::new -> ManuallyDrop::new
  • Loading branch information
pickfire authored Sep 29, 2020
1 parent 9e34b72 commit f9b625f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9b625f

Please sign in to comment.