Commit 751cb0c
committed
Revert let chains stabilization (feature(let_chains) again)
Undo the language stabilization of let chains from rust-lang#132833 / 1.88.0 by:
- moving `let_chains` from accepted features back to unstable features
- restoring the ast feature gate for `let_chains`
- re-gating chained `let` expressions in conditions behind the feature
Plain `if let` / `while let` remains stable; only chains such as
`if a && let Some(x) = y` require `#![feature(let_chains)]`.
This reintroduces the pre-stabilization language surface for let chains
(tracking issue rust-lang#53667).1 parent 0b5107f commit 751cb0c
4 files changed
Lines changed: 6 additions & 11 deletions
File tree
- compiler
- rustc_ast_passes/src
- rustc_feature/src
- rustc_parse/src/parser
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
495 | 496 | | |
496 | 497 | | |
497 | 498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | 278 | | |
281 | 279 | | |
282 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| 610 | + | |
| 611 | + | |
610 | 612 | | |
611 | 613 | | |
612 | 614 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4353 | 4353 | | |
4354 | 4354 | | |
4355 | 4355 | | |
4356 | | - | |
4357 | | - | |
4358 | | - | |
4359 | | - | |
4360 | | - | |
4361 | | - | |
4362 | | - | |
4363 | | - | |
4364 | | - | |
| 4356 | + | |
| 4357 | + | |
| 4358 | + | |
4365 | 4359 | | |
4366 | 4360 | | |
4367 | 4361 | | |
| |||
0 commit comments