about summary refs log tree commit diff
path: root/src/libextra
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-12-01 12:42:16 -0800
committerbors <bors@rust-lang.org>2013-12-01 12:42:16 -0800
commit0455e4c9f8354f94eb3580e0789e9b6c8e607f21 (patch)
tree2129f406f3dc0ed5c6406ee94af9a6aff4c3d35e /src/libextra
parent9ac48785d6fb34d70729d24967840d3e31bf39fc (diff)
parentb4a1733fd23530e10545ea999557fa3b5e45c25b (diff)
downloadrust-0455e4c9f8354f94eb3580e0789e9b6c8e607f21.tar.gz
rust-0455e4c9f8354f94eb3580e0789e9b6c8e607f21.zip
auto merge of #10756 : thestinger/rust/transmute, r=alexcrichton
Diffstat (limited to 'src/libextra')
-rw-r--r--src/libextra/arc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/arc.rs b/src/libextra/arc.rs
index 770aa6432cf..d4fa7252f77 100644
--- a/src/libextra/arc.rs
+++ b/src/libextra/arc.rs
@@ -485,7 +485,7 @@ impl<T:Freeze + Send> RWArc<T> {
             // Whatever region the input reference had, it will be safe to use
             // the same region for the output reference. (The only 'unsafe' part
             // of this cast is removing the mutability.)
-            let new_data = cast::transmute_immut(data);
+            let new_data = data;
             // Downgrade ensured the token belonged to us. Just a sanity check.
             assert!(borrow::ref_eq(&(*state).data, new_data));
             // Produce new token