diff options
| author | dianne <diannes.gm@gmail.com> | 2025-01-21 08:17:59 -0800 |
|---|---|---|
| committer | dianne <diannes.gm@gmail.com> | 2025-01-27 21:28:22 -0800 |
| commit | be7d6e3d5e34641f99f4a77d143beefbf243a934 (patch) | |
| tree | 246f2fe12abb73886807352dda543b15a7476eb2 | |
| parent | e288cff5cf38c66a5fad52d010e97f9dd3c5b991 (diff) | |
| download | rust-be7d6e3d5e34641f99f4a77d143beefbf243a934.tar.gz rust-be7d6e3d5e34641f99f4a77d143beefbf243a934.zip | |
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.
| -rw-r--r-- | src/doc/unstable-book/src/language-features/ref-pat-eat-one-layer-2024-structural.md | 19 | ||||
| -rw-r--r-- | src/doc/unstable-book/src/language-features/ref-pat-eat-one-layer-2024.md | 19 |
2 files changed, 38 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/language-features/ref-pat-eat-one-layer-2024-structural.md b/src/doc/unstable-book/src/language-features/ref-pat-eat-one-layer-2024-structural.md new file mode 100644 index 00000000000..bc587686111 --- /dev/null +++ b/src/doc/unstable-book/src/language-features/ref-pat-eat-one-layer-2024-structural.md @@ -0,0 +1,19 @@ +# `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, Edition-dependent match ergonomics under consideration for inclusion +in Rust. +For more information, see the corresponding typing rules for [Editions 2024 and later]. +On earlier 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). + +[Editions 2024 and later]: https://nadrieril.github.io/typing-rust-patterns/?compare=false&opts1=AQEBAgEBAQEBAgIAAAAAAAAAAAAAAAA%3D&mode=rules&do_cmp=false diff --git a/src/doc/unstable-book/src/language-features/ref-pat-eat-one-layer-2024.md b/src/doc/unstable-book/src/language-features/ref-pat-eat-one-layer-2024.md new file mode 100644 index 00000000000..43de1849a5e --- /dev/null +++ b/src/doc/unstable-book/src/language-features/ref-pat-eat-one-layer-2024.md @@ -0,0 +1,19 @@ +# `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, Edition-dependent match ergonomics under consideration for inclusion +in Rust. +For more information, see the corresponding typing rules for [Editions 2024 and later]. +On earlier 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). + +[Editions 2024 and later]: https://nadrieril.github.io/typing-rust-patterns/?compare=false&opts1=AQEBAAABAQABAgIAAQEBAAEBAAABAAA%3D&mode=rules&do_cmp=false |
