diff options
| author | Brian Anderson <banderson@mozilla.com> | 2015-03-26 18:34:27 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2015-03-27 12:50:49 -0700 |
| commit | 1639e51f6e4d036478705f4581de3a7417ccec0f (patch) | |
| tree | 2d46d1f1d593b0433ecfc0ca491bf1a9dfc74504 /src/doc/reference.md | |
| parent | 199bdcfeff5cfafd1f8e8ff583d7209272469879 (diff) | |
| download | rust-1639e51f6e4d036478705f4581de3a7417ccec0f.tar.gz rust-1639e51f6e4d036478705f4581de3a7417ccec0f.zip | |
Feature gate *all* slice patterns. #23121
Until some backwards-compatibility hazards are fixed in #23121, these need to be unstable. [breaking-change]
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 32088b2ab67..465918f2918 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -2408,9 +2408,13 @@ considered off, and using the features will result in a compiler error. The currently implemented features of the reference compiler are: -* `advanced_slice_patterns` - see the [match expressions](#match-expressions) +* `advanced_slice_patterns` - See the [match expressions](#match-expressions) section for discussion; the exact semantics of - slice patterns are subject to change. + slice patterns are subject to change, so some types + are still unstable. + +* `slice_patterns` - OK, actually, slice patterns are just scary and + completely unstable. * `asm` - The `asm!` macro provides a means for inline assembly. This is often useful, but the exact syntax for this feature along with its @@ -3329,7 +3333,7 @@ array, like `[.., 42, ..]`. If preceded by a variable name, it will bind the corresponding slice to the variable. Example: ``` -# #![feature(advanced_slice_patterns)] +# #![feature(advanced_slice_patterns, slice_patterns)] fn is_symmetric(list: &[u32]) -> bool { match list { [] | [_] => true, |
