Ariel Ben-Yehuda
5c717a6fc2
implement RFC495 semantics for slice patterns
...
non-MIR translation is still not supported for these and will happily ICE.
This is a [breaking-change] for many uses of slice_patterns.
2016-06-09 00:38:38 +03:00
Brian Anderson
1639e51f6e
Feature gate *all* slice patterns. #23121
...
Until some backwards-compatibility hazards are fixed in #23121 ,
these need to be unstable.
[breaking-change]
2015-03-27 12:50:49 -07:00
Jorge Aparicio
17bc7d8d5b
cleanup: replace as[_mut]_slice()
calls with deref coercions
2015-02-05 13:45:01 -05:00
Huon Wilson
0c70ce1424
Update compile fail tests to use isize.
2015-01-08 11:02:24 -05:00
Patrick Walton
eb678ff87f
librustc: Change the syntax of subslice matching to use postfix ..
...
instead of prefix `..`.
This breaks code that looked like:
match foo {
[ first, ..middle, last ] => { ... }
}
Change this code to:
match foo {
[ first, middle.., last ] => { ... }
}
RFC #55 .
Closes #16967 .
[breaking-change]
2014-09-08 16:12:13 -07:00
Alex Crichton
0089215472
rustc: Avoid an unwrap() in check_match
...
Closes #12369
2014-05-20 21:42:30 -07:00