diff options
| author | bors <bors@rust-lang.org> | 2017-09-27 16:04:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-09-27 16:04:31 +0000 |
| commit | 0e6f4cf51cd3b799fb057956f8e733d16605d09b (patch) | |
| tree | 56ff7787ca8fa8b1282782c5b14546d7a27870ef /src/test/incremental | |
| parent | 1fd3a42c624faf91e9402942419ec409699fb94a (diff) | |
| parent | 5102309b1ff63660309dead2e39ff9a9b554799a (diff) | |
| download | rust-0e6f4cf51cd3b799fb057956f8e733d16605d09b.tar.gz rust-0e6f4cf51cd3b799fb057956f8e733d16605d09b.zip | |
Auto merge of #44709 - Badel2:inclusive-range-dotdoteq, r=petrochenkov
Initial support for `..=` syntax #28237 This PR adds `..=` as a synonym for `...` in patterns and expressions. Since `...` in expressions was never stable, we now issue a warning. cc @durka r? @aturon
Diffstat (limited to 'src/test/incremental')
| -rw-r--r-- | src/test/incremental/hashes/indexing_expressions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/incremental/hashes/indexing_expressions.rs b/src/test/incremental/hashes/indexing_expressions.rs index bb31982d93f..a12624d0832 100644 --- a/src/test/incremental/hashes/indexing_expressions.rs +++ b/src/test/incremental/hashes/indexing_expressions.rs @@ -153,5 +153,5 @@ fn exclusive_to_inclusive_range(slice: &[u32]) -> &[u32] { #[rustc_metadata_clean(cfg="cfail2")] #[rustc_metadata_clean(cfg="cfail3")] fn exclusive_to_inclusive_range(slice: &[u32]) -> &[u32] { - &slice[3...7] + &slice[3..=7] } |
