1
Fork 0

Use Rvalue::ShallowInitBox for box expression

This commit is contained in:
Gary Guo 2021-09-11 23:24:55 +01:00
parent c38da2e0a3
commit 511333fcc4
2 changed files with 53 additions and 3 deletions

View file

@ -307,7 +307,6 @@ unsafe impl Allocator for Global {
}
/// The allocator for unique pointers.
// This function must not unwind. If it does, MIR codegen will fail.
#[cfg(all(not(no_global_oom_handling), not(test)))]
#[lang = "exchange_malloc"]
#[inline]