diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-11-02 17:04:32 -0800 | 
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-11-06 08:03:18 -0800 | 
| commit | cfafc1b7377d34d8c60db7cd386836d39b80af41 (patch) | |
| tree | fc5490eb766f91db85f6fa6061a48efd23f0457e /src/libstd/dynamic_lib.rs | |
| parent | e84e7a00ddec76570bbaa9afea385d544f616814 (diff) | |
| download | rust-cfafc1b7377d34d8c60db7cd386836d39b80af41.tar.gz rust-cfafc1b7377d34d8c60db7cd386836d39b80af41.zip | |
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
Diffstat (limited to 'src/libstd/dynamic_lib.rs')
| -rw-r--r-- | src/libstd/dynamic_lib.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/libstd/dynamic_lib.rs b/src/libstd/dynamic_lib.rs index 4c133fc7397..e3dfa8cabee 100644 --- a/src/libstd/dynamic_lib.rs +++ b/src/libstd/dynamic_lib.rs @@ -28,7 +28,7 @@ use option::*; use os; use path::{Path,GenericPath}; use result::*; -use slice::{AsSlice,ImmutableSlice}; +use slice::{AsSlice,SlicePrelude}; use str; use string::String; use vec::Vec; @@ -284,8 +284,8 @@ pub mod dl { use os; use ptr; use result::{Ok, Err, Result}; - use slice::ImmutableSlice; - use str::StrSlice; + use slice::SlicePrelude; + use str::StrPrelude; use str; use string::String; use vec::Vec; | 
