-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add work-in-progress unstable book chapters
These are very bare-bones, only intended to provide some documentation of what these feature gates are and aren't yet implementing.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...oc/unstable-book/src/language-features/ref-pat-eat-one-layer-2024-structural.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# `ref_pat_eat_one_layer_2024_structural` | ||
|
||
The tracking issue for this feature is: [#123076] | ||
|
||
[#123076]: https://github.com/rust-lang/rust/issues/123076 | ||
|
||
--- | ||
|
||
This feature is incomplete and not yet intended for general use. | ||
|
||
This implements experimental match ergonomics under consideration for inclusion in Rust. | ||
- On Edition 2024, this corresponds to the typing rules found [here]. | ||
- On older Editions, the current behavior is unspecified. | ||
|
||
For alternative experimental match ergonomics, see the feature | ||
[`ref_pat_eat_one_layer_2024`](./ref-pat-eat-one-layer-2024.md). | ||
|
||
[here]: https://nadrieril.github.io/typing-rust-patterns/?compare=false&opts1=AQEBAgEBAQEBAgIAAAAAAAAAAAAAAAA%3D&mode=rules&do_cmp=false&ty_d=3 |
18 changes: 18 additions & 0 deletions
18
src/doc/unstable-book/src/language-features/ref-pat-eat-one-layer-2024.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# `ref_pat_eat_one_layer_2024` | ||
|
||
The tracking issue for this feature is: [#123076] | ||
|
||
[#123076]: https://github.com/rust-lang/rust/issues/123076 | ||
|
||
--- | ||
|
||
This feature is incomplete and not yet intended for general use. | ||
|
||
This implements experimental match ergonomics under consideration for inclusion in Rust. | ||
- On Edition 2024, this corresponds to the typing rules found [here]. | ||
- On older Editions, the current behavior is unspecified. | ||
|
||
For alternative experimental match ergonomics, see the feature | ||
[`ref_pat_eat_one_layer_2024_structural`](./ref-pat-eat-one-layer-2024-structural.md). | ||
|
||
[here]: https://nadrieril.github.io/typing-rust-patterns/?compare=false&opts1=AQEBAAEBAQABAgIAAQEBAAEBAAABAAA%3D&mode=rules&do_cmp=false |