about summary refs log tree commit diff
path: root/src/librustrt
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2014-08-29 15:21:28 +1200
committerNick Cameron <ncameron@mozilla.com>2014-09-03 08:32:35 +1200
commit7f72884f1366ee9a46cd2b231c09c5c0e44f7ba3 (patch)
tree6f9bf04e0f6639a93b23fb13db4816cf44b37d91 /src/librustrt
parente9bd650cad7c519e3f39b8bbed5afeac94daff05 (diff)
downloadrust-7f72884f1366ee9a46cd2b231c09c5c0e44f7ba3.tar.gz
rust-7f72884f1366ee9a46cd2b231c09c5c0e44f7ba3.zip
Remove cross-borrowing for traits.
Closes #15349

[breaking-change]

Trait objects are no longer implicitly coerced from Box<T> to &T. You must make an explicit coercion using `&*`.
Diffstat (limited to 'src/librustrt')
-rw-r--r--src/librustrt/unwind.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustrt/unwind.rs b/src/librustrt/unwind.rs
index 9de58960c5e..9e6dff8a751 100644
--- a/src/librustrt/unwind.rs
+++ b/src/librustrt/unwind.rs
@@ -570,7 +570,7 @@ fn begin_unwind_inner(msg: Box<Any + Send>, file_line: &(&'static str, uint)) ->
             n => {
                 let f: Callback = unsafe { mem::transmute(n) };
                 let (file, line) = *file_line;
-                f(msg, file, line);
+                f(&*msg, file, line);
             }
         }
     };