detect consts that reference extern statics
This commit is contained in:
parent
9c0623fe8f
commit
77f8c3caea
9 changed files with 97 additions and 51 deletions
|
@ -418,6 +418,7 @@ pub enum ValidationErrorKind<'tcx> {
|
|||
PtrToStatic { ptr_kind: PointerKind },
|
||||
MutableRefInConst,
|
||||
ConstRefToMutable,
|
||||
ConstRefToExtern,
|
||||
MutableRefToImmutable,
|
||||
UnsafeCellInImmutable,
|
||||
NullFnPtr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue