Make dyn* cast into a coercion
This commit is contained in:
@@ -1824,7 +1824,6 @@ impl<'tcx> Rvalue<'tcx> {
|
||||
// While the model is undecided, we should be conservative. See
|
||||
// <https://www.ralfj.de/blog/2022/04/11/provenance-exposed.html>
|
||||
Rvalue::Cast(CastKind::PointerExposeAddress, _, _) => false,
|
||||
Rvalue::Cast(CastKind::DynStar, _, _) => false,
|
||||
|
||||
Rvalue::Use(_)
|
||||
| Rvalue::CopyForDeref(_)
|
||||
@@ -1841,7 +1840,8 @@ impl<'tcx> Rvalue<'tcx> {
|
||||
| CastKind::FnPtrToPtr
|
||||
| CastKind::PtrToPtr
|
||||
| CastKind::Pointer(_)
|
||||
| CastKind::PointerFromExposedAddress,
|
||||
| CastKind::PointerFromExposedAddress
|
||||
| CastKind::DynStar,
|
||||
_,
|
||||
_,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user