about summary refs log tree commit diff
path: root/src/test/run-fail
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2014-02-07 16:36:59 -0800
committerKevin Ballard <kevin@sb.org>2014-02-07 22:31:52 -0800
commit086c0dd33febb752b036fba62dcfb8aa22a51642 (patch)
tree2543a402c3d2ce04b4d7cd7e8c60da6c5fb40371 /src/test/run-fail
parent122c94d2f3909a06a5dd172b423b9b56a2f17039 (diff)
downloadrust-086c0dd33febb752b036fba62dcfb8aa22a51642.tar.gz
rust-086c0dd33febb752b036fba62dcfb8aa22a51642.zip
Delete send_str, rewrite clients on top of MaybeOwned<'static>
Declare a `type SendStr = MaybeOwned<'static>` to ease readibility of
types that needed the old SendStr behavior.

Implement all the traits for MaybeOwned that SendStr used to implement.
Diffstat (limited to 'src/test/run-fail')
-rw-r--r--src/test/run-fail/fail-task-name-send-str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-fail/fail-task-name-send-str.rs b/src/test/run-fail/fail-task-name-send-str.rs
index ca2472cfa55..ea530fe9f69 100644
--- a/src/test/run-fail/fail-task-name-send-str.rs
+++ b/src/test/run-fail/fail-task-name-send-str.rs
@@ -12,7 +12,7 @@
 
 fn main() {
     let mut t = ::std::task::task();
-    t.name("send name".to_send_str());
+    t.name("send name".into_maybe_owned());
     t.try(proc() {
         fail!("test");
         3