libstd: Remove ~str from all libstd modules except fmt and str.

This commit is contained in:
Patrick Walton
2014-05-16 10:45:16 -07:00
parent e402e75f4e
commit 36195eb91f
204 changed files with 2102 additions and 1496 deletions

View File

@@ -51,6 +51,7 @@ use str::{Str, SendStr, IntoMaybeOwned};
#[cfg(test)] use owned::AnyOwnExt;
#[cfg(test)] use result;
#[cfg(test)] use str::StrAllocating;
#[cfg(test)] use strbuf::StrBuf;
/// Indicates the manner in which a task exited.
///
@@ -496,12 +497,12 @@ fn test_try_fail_message_static_str() {
#[test]
fn test_try_fail_message_owned_str() {
match try(proc() {
fail!("owned string".to_owned());
fail!("owned string".to_strbuf());
}) {
Err(e) => {
type T = ~str;
type T = StrBuf;
assert!(e.is::<T>());
assert_eq!(*e.move::<T>().unwrap(), "owned string".to_owned());
assert_eq!(*e.move::<T>().unwrap(), "owned string".to_strbuf());
}
Ok(()) => fail!()
}