Skip to content

Commit 01e1485

Browse files
aturonSimonSapin
authored andcommitted
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](rust-lang/rfcs#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
1 parent 5466c2e commit 01e1485

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/ascii.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ use fmt;
1919
use iter::Iterator;
2020
use mem;
2121
use option::{Option, Some, None};
22-
use slice::{ImmutableSlice, MutableSlice, AsSlice};
23-
use str::{Str, StrSlice};
22+
use slice::{SlicePrelude, AsSlice};
23+
use str::{Str, StrPrelude};
2424
use string::{mod, String};
2525
use to_string::IntoStr;
2626
use vec::Vec;
@@ -578,7 +578,7 @@ mod tests {
578578
use prelude::*;
579579
use super::*;
580580
use char::from_u32;
581-
use str::StrSlice;
581+
use str::StrPrelude;
582582

583583
macro_rules! v2ascii (
584584
( [$($e:expr),*]) => (&[$(Ascii{chr:$e}),*]);

0 commit comments

Comments
 (0)