diff options
Diffstat (limited to 'src/libstd/str.rs')
| -rw-r--r-- | src/libstd/str.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/libstd/str.rs b/src/libstd/str.rs index 230564c6bf1..a005549402e 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -977,11 +977,13 @@ static TAG_CONT_U8: u8 = 128u8; /// Unsafe operations pub mod raw { use cast; + use container::Container; use libc; use ptr; - use str::{is_utf8, OwnedStr}; + use ptr::RawPtr; + use str::{is_utf8, OwnedStr, StrSlice}; use vec; - use vec::MutableVector; + use vec::{MutableVector, ImmutableVector, OwnedVector}; use unstable::raw::Slice; /// Create a Rust string from a *u8 buffer of the given length @@ -1137,10 +1139,12 @@ Section: Trait implementations #[cfg(not(test))] #[allow(missing_doc)] pub mod traits { - use ops::Add; + use container::Container; use cmp::{TotalOrd, Ordering, Less, Equal, Greater, Eq, Ord, Equiv, TotalEq}; - use super::{Str, eq_slice}; + use iter::Iterator; + use ops::Add; use option::{Some, None}; + use str::{Str, StrSlice, OwnedStr, eq_slice}; impl<'a> Add<&'a str,~str> for &'a str { #[inline] |
