Use Rvalue::ShallowInitBox for box expression
This commit is contained in:
parent
c38da2e0a3
commit
511333fcc4
2 changed files with 53 additions and 3 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue