Merge commit 'f2cdd4a78d
' into sync_cg_clif-2022-04-22
This commit is contained in:
commit
b70b01b112
21 changed files with 189 additions and 142 deletions
|
@ -821,7 +821,8 @@ pub(crate) fn codegen_place<'tcx>(
|
|||
if cplace.layout().ty.is_box() {
|
||||
cplace = cplace
|
||||
.place_field(fx, Field::new(0)) // Box<T> -> Unique<T>
|
||||
.place_field(fx, Field::new(0)) // Unique<T> -> *const T
|
||||
.place_field(fx, Field::new(0)) // Unique<T> -> NonNull<T>
|
||||
.place_field(fx, Field::new(0)) // NonNull<T> -> *mut T
|
||||
.place_deref(fx);
|
||||
} else {
|
||||
cplace = cplace.place_deref(fx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue