Add nested
bool to DefKind::Static
.
Will be used in the next commit
This commit is contained in:
parent
9816915954
commit
0b4cbee660
10 changed files with 19 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue