about summary refs log tree commit diff
path: root/src/libstd/os.rs
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2014-11-02 17:04:32 -0800
committerAaron Turon <aturon@mozilla.com>2014-11-06 08:03:18 -0800
commitcfafc1b7377d34d8c60db7cd386836d39b80af41 (patch)
treefc5490eb766f91db85f6fa6061a48efd23f0457e /src/libstd/os.rs
parente84e7a00ddec76570bbaa9afea385d544f616814 (diff)
downloadrust-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/os.rs')
-rw-r--r--src/libstd/os.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs
index 9846f7b653e..0042a3ae205 100644
--- a/src/libstd/os.rs
+++ b/src/libstd/os.rs
@@ -46,9 +46,9 @@ use path::{Path, GenericPath, BytesContainer};
 use ptr::RawPtr;
 use ptr;
 use result::{Err, Ok, Result};
-use slice::{AsSlice, ImmutableSlice, MutableSlice, ImmutablePartialEqSlice};
-use slice::CloneableVector;
-use str::{Str, StrSlice, StrAllocating};
+use slice::{AsSlice, SlicePrelude, PartialEqSlicePrelude};
+use slice::CloneSliceAllocPrelude;
+use str::{Str, StrPrelude, StrAllocating};
 use string::String;
 use to_string::ToString;
 use sync::atomic::{AtomicInt, INIT_ATOMIC_INT, SeqCst};
@@ -146,9 +146,9 @@ pub mod windows {
     use option::{None, Option};
     use option;
     use os::TMPBUF_SZ;
-    use slice::{MutableSlice, ImmutableSlice};
+    use slice::{SlicePrelude};
     use string::String;
-    use str::StrSlice;
+    use str::StrPrelude;
     use vec::Vec;
 
     pub fn fill_utf16_buf_and_decode(f: |*mut u16, DWORD| -> DWORD)