diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-04-30 23:06:36 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-07 08:16:14 -0700 |
| commit | 9bae6ec828fdc7f87838ee008cccef90e31b9f84 (patch) | |
| tree | 97ae34844c9949ff5a49a6b99ff70dd2f0cbf6c0 /src/libstd/task.rs | |
| parent | 544d90940166a9a83194801437dd37c0b1872c86 (diff) | |
| download | rust-9bae6ec828fdc7f87838ee008cccef90e31b9f84.tar.gz rust-9bae6ec828fdc7f87838ee008cccef90e31b9f84.zip | |
core: Inherit possible string functionality
This moves as much allocation as possible from teh std::str module into core::str. This includes essentially all non-allocating functionality, mostly iterators and slicing and such. This primarily splits the Str trait into only having the as_slice() method, adding a new StrAllocating trait to std::str which contains the relevant new allocation methods. This is a breaking change if any of the methods of "trait Str" were overriden. The old functionality can be restored by implementing both the Str and StrAllocating traits. [breaking-change]
Diffstat (limited to 'src/libstd/task.rs')
| -rw-r--r-- | src/libstd/task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/task.rs b/src/libstd/task.rs index 7c5e984ad36..23831e40a8b 100644 --- a/src/libstd/task.rs +++ b/src/libstd/task.rs @@ -49,7 +49,7 @@ use str::{Str, SendStr, IntoMaybeOwned}; #[cfg(test)] use any::{AnyOwnExt, AnyRefExt}; #[cfg(test)] use result; -#[cfg(test)] use str::StrSlice; +#[cfg(test)] use str::StrAllocating; /// Indicates the manner in which a task exited. /// |
