Prelude: rename and consolidate extension traits
This commit renames a number of extension traits for slices and string slices, now that they have been refactored for DST. In many cases, multiple extension traits could now be consolidated. Further consolidation will be possible with generalized where clauses. The renamings are consistent with the [new `-Prelude` suffix](https://github.com/rust-lang/rfcs/pull/344). There are probably a few more candidates for being renamed this way, but that is left for API stabilization of the relevant modules. Because this renames traits, it is a: [breaking-change] However, I do not expect any code that currently uses the standard library to actually break. Closes #17917
This commit is contained in:
parent
e84e7a00dd
commit
cfafc1b737
45 changed files with 483 additions and 487 deletions
|
@ -18,7 +18,7 @@ use iter::ExactSize;
|
|||
use ops::Drop;
|
||||
use option::{Some, None, Option};
|
||||
use result::{Ok, Err};
|
||||
use slice::{ImmutableSlice, MutableSlice};
|
||||
use slice::{SlicePrelude};
|
||||
use slice;
|
||||
use vec::Vec;
|
||||
|
||||
|
@ -376,7 +376,7 @@ mod test {
|
|||
use super::super::{IoResult, EndOfFile};
|
||||
use super::super::mem::{MemReader, MemWriter, BufReader};
|
||||
use self::test::Bencher;
|
||||
use str::StrSlice;
|
||||
use str::StrPrelude;
|
||||
|
||||
/// A type, free to create, primarily intended for benchmarking creation of
|
||||
/// wrappers that, just for construction, don't need a Reader/Writer that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue