diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-03-19 09:26:29 +0100 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-03-29 13:12:49 +0200 |
| commit | 16d3ba1b23195da2d53e058c58c2a41def914dec (patch) | |
| tree | 29ca377ec9cc86f41950a1897adc89b48a4c1825 /src/liballoc/string.rs | |
| parent | c3a63970dee2422e2fcc79d8b99303b4b046f444 (diff) | |
| download | rust-16d3ba1b23195da2d53e058c58c2a41def914dec.tar.gz rust-16d3ba1b23195da2d53e058c58c2a41def914dec.zip | |
Move RangeArguments to {core::std}::ops and rename to RangeBounds
These unstable items are deprecated: * The `std::collections::range::RangeArgument` reexport * The `std::collections::range` module.
Diffstat (limited to 'src/liballoc/string.rs')
| -rw-r--r-- | src/liballoc/string.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index 754c78f7779..aa202e23628 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -60,14 +60,13 @@ use core::fmt; use core::hash; use core::iter::{FromIterator, FusedIterator}; use core::ops::Bound::{Excluded, Included, Unbounded}; -use core::ops::{self, Add, AddAssign, Index, IndexMut}; +use core::ops::{self, Add, AddAssign, Index, IndexMut, RangeBounds}; use core::ptr; use core::str::pattern::Pattern; use std_unicode::lossy; use std_unicode::char::{decode_utf16, REPLACEMENT_CHARACTER}; use borrow::{Cow, ToOwned}; -use range::RangeArgument; use str::{self, from_boxed_utf8_unchecked, FromStr, Utf8Error, Chars}; use vec::Vec; use boxed::Box; @@ -1484,7 +1483,7 @@ impl String { /// ``` #[stable(feature = "drain", since = "1.6.0")] pub fn drain<R>(&mut self, range: R) -> Drain - where R: RangeArgument<usize> + where R: RangeBounds<usize> { // Memory safety // @@ -1548,7 +1547,7 @@ impl String { /// ``` #[unstable(feature = "splice", reason = "recently added", issue = "44643")] pub fn splice<R>(&mut self, range: R, replace_with: &str) - where R: RangeArgument<usize> + where R: RangeBounds<usize> { // Memory safety // |
