Skip to content

Commit cc1ec8a

Browse files
committed
VERY FISHY; NEED TEST
1 parent 0aa7752 commit cc1ec8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_const_eval/src/interpret/validity.rs

+1
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
468468
let is_mut = matches!(
469469
self.ecx.tcx.def_kind(did),
470470
DefKind::Static { mt: Mutability::Mut, .. }
471+
| DefKind::Static { nested: true, .. }
471472
) || !self
472473
.ecx
473474
.tcx

0 commit comments

Comments
 (0)