Skip to content

Commit 699b25f

Browse files
nikomatsakiscanndrew
authored andcommitted
fix comment that got split in two
1 parent 9f83e96 commit 699b25f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustc_const_eval/_match.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,14 +361,13 @@ impl<'tcx> Witness<'tcx> {
361361

362362
/// This determines the set of all possible constructors of a pattern matching
363363
/// values of type `left_ty`. For vectors, this would normally be an infinite set
364+
/// but is instead bounded by the maximum fixed length of slice patterns in
365+
/// the column of patterns being analyzed.
364366
///
365367
/// This intentionally does not list ConstantValue specializations for
366368
/// non-booleans, because we currently assume that there is always a
367369
/// "non-standard constant" that matches. See issue #12483.
368370
///
369-
/// but is instead bounded by the maximum fixed length of slice patterns in
370-
/// the column of patterns being analyzed.
371-
///
372371
/// We make sure to omit constructors that are statically impossible. eg for
373372
/// Option<!> we do not include Some(_) in the returned list of constructors.
374373
fn all_constructors<'a, 'tcx: 'a>(cx: &mut MatchCheckCtxt<'a, 'tcx>,

0 commit comments

Comments
 (0)