Skip to content

Commit 640d948

Browse files
oli-obkRalfJung
andcommitted
Update compiler/rustc_const_eval/src/interpret/validity.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent 9298ca8 commit 640d948

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_const_eval/src/interpret/validity.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,8 @@ impl<'rt, 'tcx, M: Machine<'tcx>> ValueVisitor<'tcx, M> for ValidityVisitor<'rt,
12441244
// When you extend this match, make sure to also add tests to
12451245
// tests/ui/type/pattern_types/validity.rs
12461246
match **pat {
1247-
// Range patterns are handled fully by looking at the layout
1247+
// Range patterns are precisely reflected into `valid_range` and thus
1248+
// handled fully by `visit_scalar` (called below).
12481249
ty::PatternKind::Range { .. } => {},
12491250
}
12501251
}

0 commit comments

Comments
 (0)