Skip to content

Commit

Permalink
VERY FISHY; NEED TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Feb 26, 2024
1 parent 0aa7752 commit cc1ec8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_const_eval/src/interpret/validity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
let is_mut = matches!(
self.ecx.tcx.def_kind(did),
DefKind::Static { mt: Mutability::Mut, .. }
| DefKind::Static { nested: true, .. }
) || !self
.ecx
.tcx
Expand Down

0 comments on commit cc1ec8a

Please sign in to comment.