Skip to content

Commit 1948fac

Browse files
authored
Rollup merge of rust-lang#62255 - Centril:slice-patterns-change-issue, r=varkor
Switch tracking issue for `#![feature(slice_patterns)]` Switches the tracking issue for `#![feature(slice_patterns)]` to a fresh one in rust-lang#62254 due to new RFCs. Closes rust-lang#23121. r? @varkor
2 parents 631a58b + de00ae7 commit 1948fac

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/doc/unstable-book/src/language-features/slice-patterns.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# `slice_patterns`
22

3-
The tracking issue for this feature is: [#23121]
3+
The tracking issue for this feature is: [#62254]
44

5-
[#23121]: https://github.com/rust-lang/rust/issues/23121
5+
[#62254]: https://github.com/rust-lang/rust/issues/62254
66

77
------------------------
88

src/librustc_typeck/check/_match.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
458458
match ty.sty {
459459
ty::Array(..) | ty::Slice(..) => {
460460
err.help("the semantics of slice patterns changed \
461-
recently; see issue #23121");
461+
recently; see issue #62254");
462462
}
463463
_ => {}
464464
}

src/libsyntax/feature_gate.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ declare_features! (
323323
(active, nll, "1.0.0", Some(43234), None),
324324

325325
// Allows using slice patterns.
326-
(active, slice_patterns, "1.0.0", Some(23121), None),
326+
(active, slice_patterns, "1.0.0", Some(62254), None),
327327

328328
// Allows the definition of `const` functions with some advanced features.
329329
(active, const_fn, "1.2.0", Some(57563), None),
@@ -607,7 +607,7 @@ declare_features! (
607607
(removed, allocator, "1.0.0", None, None, None),
608608
(removed, simd, "1.0.0", Some(27731), None,
609609
Some("removed in favor of `#[repr(simd)]`")),
610-
(removed, advanced_slice_patterns, "1.0.0", Some(23121), None,
610+
(removed, advanced_slice_patterns, "1.0.0", Some(62254), None,
611611
Some("merged into `#![feature(slice_patterns)]`")),
612612
(removed, macro_reexport, "1.0.0", Some(29638), None,
613613
Some("subsumed by `pub use`")),

src/test/ui/feature-gates/feature-gate-slice-patterns.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: syntax for subslices in slice patterns is not yet stabilized
44
LL | [1, 2, ..] => {}
55
| ^^
66
|
7-
= note: for more information, see https://github.com/rust-lang/rust/issues/23121
7+
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
88
= help: add #![feature(slice_patterns)] to the crate attributes to enable
99

1010
error[E0658]: syntax for subslices in slice patterns is not yet stabilized
@@ -13,7 +13,7 @@ error[E0658]: syntax for subslices in slice patterns is not yet stabilized
1313
LL | [1, .., 5] => {}
1414
| ^^
1515
|
16-
= note: for more information, see https://github.com/rust-lang/rust/issues/23121
16+
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
1717
= help: add #![feature(slice_patterns)] to the crate attributes to enable
1818

1919
error[E0658]: syntax for subslices in slice patterns is not yet stabilized
@@ -22,7 +22,7 @@ error[E0658]: syntax for subslices in slice patterns is not yet stabilized
2222
LL | [.., 4, 5] => {}
2323
| ^^
2424
|
25-
= note: for more information, see https://github.com/rust-lang/rust/issues/23121
25+
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
2626
= help: add #![feature(slice_patterns)] to the crate attributes to enable
2727

2828
error[E0658]: syntax for subslices in slice patterns is not yet stabilized
@@ -31,7 +31,7 @@ error[E0658]: syntax for subslices in slice patterns is not yet stabilized
3131
LL | [ xs.., 4, 5 ] => {}
3232
| ^^
3333
|
34-
= note: for more information, see https://github.com/rust-lang/rust/issues/23121
34+
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
3535
= help: add #![feature(slice_patterns)] to the crate attributes to enable
3636

3737
error[E0658]: syntax for subslices in slice patterns is not yet stabilized
@@ -40,7 +40,7 @@ error[E0658]: syntax for subslices in slice patterns is not yet stabilized
4040
LL | [ 1, xs.., 5 ] => {}
4141
| ^^
4242
|
43-
= note: for more information, see https://github.com/rust-lang/rust/issues/23121
43+
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
4444
= help: add #![feature(slice_patterns)] to the crate attributes to enable
4545

4646
error[E0658]: syntax for subslices in slice patterns is not yet stabilized
@@ -49,7 +49,7 @@ error[E0658]: syntax for subslices in slice patterns is not yet stabilized
4949
LL | [ 1, 2, xs.. ] => {}
5050
| ^^
5151
|
52-
= note: for more information, see https://github.com/rust-lang/rust/issues/23121
52+
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
5353
= help: add #![feature(slice_patterns)] to the crate attributes to enable
5454

5555
error: aborting due to 6 previous errors

0 commit comments

Comments
 (0)