Implement mem::{zeroed,uninitialized} in terms of MaybeUninit.

Refs #62061
This commit is contained in:
Alex Gaynor
2019-06-26 07:50:30 -04:00
parent b43eb4235a
commit e4f250e405
7 changed files with 12 additions and 29 deletions

View File

@@ -234,7 +234,7 @@ impl IntrinsicCallMethods<'tcx> for Builder<'a, 'll, 'tcx> {
return;
}
// Effectively no-ops
"uninit" | "forget" => {
"forget" => {
return;
}
"needs_drop" => {