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:
Jonas Schievink 2020-09-30 20:56:21 +02:00 committed by GitHub
commit fea2ad8a0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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