We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aa7752 commit cc1ec8aCopy full SHA for cc1ec8a
1 file changed
compiler/rustc_const_eval/src/interpret/validity.rs
@@ -468,6 +468,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
468
let is_mut = matches!(
469
self.ecx.tcx.def_kind(did),
470
DefKind::Static { mt: Mutability::Mut, .. }
471
+ | DefKind::Static { nested: true, .. }
472
) || !self
473
.ecx
474
.tcx
0 commit comments