Commit 0a608b4
committed
Document Rust 2024 match ergonomics reservations
We're adopting two changes to match ergonomics in Rust 2024 that have
the effect of reserving language space:
- Rule 1C: When the DBM is not `move` (whether or not behind a
reference), writing `mut`, `ref`, or `ref mut` on a binding is an
error.
- Rule 2C: Reference patterns can only match against references in the
scrutinee when the DBM is `move`.
Here, we document those changes in the Reference and describe the
differences between editions.1 parent 1dffb2b commit 0a608b4
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
268 | 286 | | |
269 | 287 | | |
270 | 288 | | |
| |||
0 commit comments