Skip to content

Commit 1831370

Browse files
authored
pattern matching post: minor link tweaks (#531)
1 parent d988c6d commit 1831370

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

posts/inside-rust/2020-03-04-recent-future-pattern-matching-improvements.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Our hope is that with providing this feature, we remove one surprising corner of
171171

172172
## Combining by-move and by-`ref` bindings
173173

174-
[tracking_move_ref]: https://github.com/rust-lang/rust/pull/68376
174+
[tracking_move_ref]: https://github.com/rust-lang/rust/issues/68354
175175

176176
For similar reasons as noted in the case of bindings after `@`, Rust does not currently allow you to combine normal by-move bindings with those that are by-`ref`. For example, should you write...:
177177

@@ -223,9 +223,9 @@ fn main() {
223223

224224
To recap, we have three unstable features, all improving pattern matching in different ways:
225225

226-
- `#![feature(or_patterns)]`, which allows you to arbitrarily nest or-patterns e.g. `Some(Foo | Bar)`
227-
- `#![feature(bindings_after_at)]`, which allows e.g., `ref x @ Some(ref y)`
228-
- `#![feature(move_ref_pattern)]`, which allows e.g., `(x, ref y)` where `x` is by-move and `y` is by-reference
226+
- [`#![feature(or_patterns)]`][tracking_or_pats], which allows you to arbitrarily nest or-patterns e.g. `Some(Foo | Bar)`
227+
- [`#![feature(bindings_after_at)]`][tracking_at], which allows e.g., `ref x @ Some(ref y)`
228+
- [`#![feature(move_ref_pattern)]`][tracking_move_ref], which allows e.g., `(x, ref y)` where `x` is by-move and `y` is by-reference
229229

230230
To help us transition these features over to stable Rust, we need your help to ensure that they meet the expected quality standards. To help out, consider:
231231

0 commit comments

Comments
 (0)