Enforce unsafe binders must be Copy (for now)
This commit is contained in:
parent
62c68e15b8
commit
a9434c08e2
1 changed files with 1 additions and 0 deletions
|
|
@ -116,6 +116,7 @@ fn check_rvalue<'tcx>(
|
|||
Rvalue::CopyForDeref(place) => check_place(tcx, *place, span, body, msrv),
|
||||
Rvalue::Repeat(operand, _)
|
||||
| Rvalue::Use(operand)
|
||||
| Rvalue::WrapUnsafeBinder(operand, _)
|
||||
| Rvalue::Cast(
|
||||
CastKind::PointerWithExposedProvenance
|
||||
| CastKind::IntToInt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue