Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 640d948

Browse files
oli-obkRalfJung
andcommitted
Update compiler/rustc_const_eval/src/interpret/validity.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
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

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /