1
Fork 0

allow statics pointing to mutable statics

This commit is contained in:
Ralf Jung 2024-02-29 08:15:22 +01:00
parent ef324565d0
commit 3cc8c8d44b
11 changed files with 207 additions and 91 deletions

View file

@ -420,7 +420,6 @@ pub enum ValidationErrorKind<'tcx> {
PartialPointer,
PtrToUninhabited { ptr_kind: PointerKind, ty: Ty<'tcx> },
PtrToStatic { ptr_kind: PointerKind },
MutableRefInConstOrStatic,
ConstRefToMutable,
ConstRefToExtern,
MutableRefToImmutable,