]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_data_structures/array_vec.rs
New upstream version 1.26.0+dfsg1
[rustc.git] / src / librustc_data_structures / array_vec.rs
index 511c407d45a7fef0ad7d7cb0f5d937041b93826e..db1cfb5c767687cf92613bb333035f980cdb2592 100644 (file)
@@ -18,9 +18,9 @@ use std::hash::{Hash, Hasher};
 use std::slice;
 use std::fmt;
 use std::mem;
-use std::collections::range::RangeArgument;
-use std::collections::Bound::{Excluded, Included, Unbounded};
 use std::mem::ManuallyDrop;
+use std::ops::Bound::{Excluded, Included, Unbounded};
+use std::ops::RangeBounds;
 
 pub unsafe trait Array {
     type Element;
@@ -106,7 +106,7 @@ impl<A: Array> ArrayVec<A> {
     }
 
     pub fn drain<R>(&mut self, range: R) -> Drain<A>
-        where R: RangeArgument<usize>
+        where R: RangeBounds<usize>
     {
         // Memory safety
         //