Enforce unsafe binders must be Copy (for now)
This commit is contained in:
parent
fc1a9186dc
commit
b63341e892
5 changed files with 98 additions and 41 deletions
|
@ -915,6 +915,10 @@ fn codegen_stmt<'tcx>(
|
|||
}
|
||||
crate::discriminant::codegen_set_discriminant(fx, lval, variant_index);
|
||||
}
|
||||
Rvalue::WrapUnsafeBinder(ref operand, _to_ty) => {
|
||||
let operand = codegen_operand(fx, operand);
|
||||
lval.write_cvalue_transmute(fx, operand);
|
||||
}
|
||||
}
|
||||
}
|
||||
StatementKind::StorageLive(_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue