diff options
| author | bors <bors@rust-lang.org> | 2013-12-01 12:42:16 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-12-01 12:42:16 -0800 |
| commit | 0455e4c9f8354f94eb3580e0789e9b6c8e607f21 (patch) | |
| tree | 2129f406f3dc0ed5c6406ee94af9a6aff4c3d35e /src/libextra | |
| parent | 9ac48785d6fb34d70729d24967840d3e31bf39fc (diff) | |
| parent | b4a1733fd23530e10545ea999557fa3b5e45c25b (diff) | |
| download | rust-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.rs | 2 |
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 |
