Skip to content

Commit 24338f5

Browse files
RalfJungoli-obk
andcommitted
fix typo
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
1 parent 9e8b167 commit 24338f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/interpret/validity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ impl<'rt, 'tcx, M: Machine<'tcx>> ValidityVisitor<'rt, 'tcx, M> {
599599
skip_recursive_check = !nested;
600600
}
601601
CtfeValidationMode::Const { .. } => {
602-
// If this is mutable memory on an `extern static`, there's no point in checking it -- we'd
602+
// If this is mutable memory or an `extern static`, there's no point in checking it -- we'd
603603
// just get errors trying to read the value.
604604
if alloc_actual_mutbl.is_mut() || self.ecx.tcx.is_foreign_item(did)
605605
{

0 commit comments

Comments
 (0)