Skip to content

Commit 1841f2d

Browse files
varkorfanzier
authored andcommitted
Update feature gate issue
1 parent 9b38750 commit 1841f2d

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

compiler/rustc_feature/src/active.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,7 @@ declare_features! (
611611
(active, unsized_fn_params, "1.49.0", Some(48055), None),
612612

613613
/// Allows the use of destructuring assignments.
614-
/// The current issue reference refers to the rust-lang/rfcs issue. This will be changed to a
615-
/// valid rust-lang/rust issue when the accompanying RFC is accepted.
616-
(active, destructuring_assignment, "1.49.0", Some(372), None),
614+
(active, destructuring_assignment, "1.49.0", Some(71126), None),
617615

618616
// -------------------------------------------------------------------------
619617
// feature-group-end: actual feature gates

src/test/ui/bad/bad-expr-lhs.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LL | (1, 2) = (3, 4);
2222
| |
2323
| cannot assign to this expression
2424
|
25-
= note: see issue #372 <https://github.com/rust-lang/rust/issues/372> for more information
25+
= note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
2626
= help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
2727

2828
error[E0070]: invalid left-hand side of assignment
@@ -49,7 +49,7 @@ LL | (a, b) = (3, 4);
4949
| |
5050
| cannot assign to this expression
5151
|
52-
= note: see issue #372 <https://github.com/rust-lang/rust/issues/372> for more information
52+
= note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
5353
= help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
5454

5555
error[E0070]: invalid left-hand side of assignment

src/test/ui/destructuring-assignment/note-unsupported.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LL | (a, b) = (3, 4);
1212
| |
1313
| cannot assign to this expression
1414
|
15-
= note: see issue #372 <https://github.com/rust-lang/rust/issues/372> for more information
15+
= note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
1616
= help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
1717

1818
error[E0368]: binary assignment operation `+=` cannot be applied to type `({integer}, {integer})`
@@ -39,7 +39,7 @@ LL | [a, b] = [3, 4];
3939
| |
4040
| cannot assign to this expression
4141
|
42-
= note: see issue #372 <https://github.com/rust-lang/rust/issues/372> for more information
42+
= note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
4343
= help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
4444

4545
error[E0368]: binary assignment operation `+=` cannot be applied to type `[{integer}; 2]`
@@ -66,7 +66,7 @@ LL | S { x: a, y: b } = s;
6666
| |
6767
| cannot assign to this expression
6868
|
69-
= note: see issue #372 <https://github.com/rust-lang/rust/issues/372> for more information
69+
= note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
7070
= help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
7171

7272
error[E0368]: binary assignment operation `+=` cannot be applied to type `S`
@@ -95,7 +95,7 @@ LL | S { x: a, ..s } = S { x: 3, y: 4 };
9595
| |
9696
| cannot assign to this expression
9797
|
98-
= note: see issue #372 <https://github.com/rust-lang/rust/issues/372> for more information
98+
= note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
9999
= help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
100100

101101
error[E0658]: destructuring assignments are unstable
@@ -106,7 +106,7 @@ LL | ((a, b), c) = ((3, 4), 5);
106106
| |
107107
| cannot assign to this expression
108108
|
109-
= note: see issue #372 <https://github.com/rust-lang/rust/issues/372> for more information
109+
= note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
110110
= help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
111111

112112
error: aborting due to 12 previous errors

src/test/ui/feature-gates/feature-gate-destructuring_assignment.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | (a, b) = (2, 3);
66
| |
77
| cannot assign to this expression
88
|
9-
= note: see issue #372 <https://github.com/rust-lang/rust/issues/372> for more information
9+
= note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
1010
= help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
1111

1212
error: aborting due to previous error

0 commit comments

Comments
 (0)