1
Fork 0

Add nested bool to DefKind::Static.

Will be used in the next commit
This commit is contained in:
Oli Scherer 2024-02-23 23:29:09 +00:00
parent 9816915954
commit 0b4cbee660
10 changed files with 19 additions and 13 deletions

View file

@ -459,7 +459,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
assert!(self.ecx.tcx.is_static(did));
let is_mut = matches!(
self.ecx.tcx.def_kind(did),
DefKind::Static { mt: Mutability::Mut }
DefKind::Static { mt: Mutability::Mut, .. }
) || !self
.ecx
.tcx