about summary refs log tree commit diff
path: root/src/librustc_data_structures/array_vec.rs
diff options
context:
space:
mode:
authorCory Sherman <coryshrmn@gmail.com>2018-05-24 04:39:35 -0700
committerCory Sherman <coryshrmn@gmail.com>2018-05-24 05:01:40 -0700
commit1440f300d848610b0cb798a735e2c75a94998aa9 (patch)
tree02c294e0de1006f3fd964f9e68d427ee400b324f /src/librustc_data_structures/array_vec.rs
parentb4463d788bfd30b622a87a0e6f8e9271b9102e50 (diff)
downloadrust-1440f300d848610b0cb798a735e2c75a94998aa9.tar.gz
rust-1440f300d848610b0cb798a735e2c75a94998aa9.zip
stabilize RangeBounds collections_range #30877
rename RangeBounds::start() -> start_bound()
rename RangeBounds::end() -> end_bound()
Diffstat (limited to 'src/librustc_data_structures/array_vec.rs')
-rw-r--r--src/librustc_data_structures/array_vec.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_data_structures/array_vec.rs b/src/librustc_data_structures/array_vec.rs
index 7b33ee40d8c..56bb9613242 100644
--- a/src/librustc_data_structures/array_vec.rs
+++ b/src/librustc_data_structures/array_vec.rs
@@ -119,12 +119,12 @@ impl<A: Array> ArrayVec<A> {
         // the hole, and the vector length is restored to the new length.
         //
         let len = self.len();
-        let start = match range.start() {
+        let start = match range.start_bound() {
             Included(&n) => n,
             Excluded(&n) => n + 1,
             Unbounded    => 0,
         };
-        let end = match range.end() {
+        let end = match range.end_bound() {
             Included(&n) => n + 1,
             Excluded(&n) => n,
             Unbounded    => len,