Skip to content

Commit 6c0f4bb

Browse files
Enforce unsafe binders must be Copy (for now)
1 parent 83ab12f commit 6c0f4bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/base.rs

+4
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,10 @@ fn codegen_stmt<'tcx>(
915915
}
916916
crate::discriminant::codegen_set_discriminant(fx, lval, variant_index);
917917
}
918+
Rvalue::WrapUnsafeBinder(ref operand, _to_ty) => {
919+
let operand = codegen_operand(fx, operand);
920+
lval.write_cvalue_transmute(fx, operand);
921+
}
918922
}
919923
}
920924
StatementKind::StorageLive(_)

0 commit comments

Comments
 (0)