@@ -291,17 +291,17 @@ impl<'p, 'tcx> Matrix<'p, 'tcx> {
291
291
}
292
292
293
293
/// Pretty-printer for matrices of patterns, example:
294
- /// ++++++++++++++++++++++++++
295
- /// + _ + [] +
296
- /// ++++++++++++++++++++++++++
297
- /// + true + [First] +
298
- /// ++++++++++++++++++++++++++
299
- /// + true + [Second(true)] +
300
- /// ++++++++++++++++++++++++++
301
- /// + false + [_] +
302
- /// ++++++++++++++++++++++++++
303
- /// + _ + [_, _, ..tail ] +
304
- /// ++++++++++++++++++++++++++
294
+ /// +++++++++++++++++++++++++++++
295
+ /// + _ + [] +
296
+ /// +++++++++++++++++++++++++++++
297
+ /// + true + [First] +
298
+ /// +++++++++++++++++++++++++++++
299
+ /// + true + [Second(true)] +
300
+ /// +++++++++++++++++++++++++++++
301
+ /// + false + [_] +
302
+ /// +++++++++++++++++++++++++++++
303
+ /// + _ + [_, _, tail @ .. ] +
304
+ /// +++++++++++++++++++++++++++++
305
305
impl < ' p , ' tcx > fmt:: Debug for Matrix < ' p , ' tcx > {
306
306
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
307
307
write ! ( f, "\n " ) ?;
@@ -1439,7 +1439,7 @@ fn is_useful_specialized<'p, 'a, 'tcx>(
1439
1439
/// In most cases, there's only one constructor that a specific pattern
1440
1440
/// represents, such as a specific enum variant or a specific literal value.
1441
1441
/// Slice patterns, however, can match slices of different lengths. For instance,
1442
- /// `[a, b, ..tail ]` can match a slice of length 2, 3, 4 and so on.
1442
+ /// `[a, b, tail @ .. ]` can match a slice of length 2, 3, 4 and so on.
1443
1443
///
1444
1444
/// Returns `None` in case of a catch-all, which can't be specialized.
1445
1445
fn pat_constructors < ' tcx > (
@@ -1884,7 +1884,7 @@ fn patterns_for_variant<'p, 'a: 'p, 'tcx>(
1884
1884
/// into `arity` patterns based on the constructor. For most patterns, the step is trivial,
1885
1885
/// for instance tuple patterns are flattened and box patterns expand into their inner pattern.
1886
1886
///
1887
- /// OTOH, slice patterns with a subslice pattern (..tail ) can be expanded into multiple
1887
+ /// OTOH, slice patterns with a subslice pattern (tail @ .. ) can be expanded into multiple
1888
1888
/// different patterns.
1889
1889
/// Structure patterns with a partial wild pattern (Foo { a: 42, .. }) have their missing
1890
1890
/// fields filled with wild patterns.
0 commit comments