about summary refs log tree commit diff
path: root/src/libcoretest/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-02-03 03:23:35 +0000
committerbors <bors@rust-lang.org>2017-02-03 03:23:35 +0000
commit5de2a24b2ebfa42db8eadab911a107b4a67fabdb (patch)
tree801d474d204637340ba30ed2521d68f2c9abdf63 /src/libcoretest/lib.rs
parent7f294e4c186b461ee8fc28c75d4216822a535d7a (diff)
parent8b947a37c8bf396cf80c3790f68253c97d435250 (diff)
downloadrust-5de2a24b2ebfa42db8eadab911a107b4a67fabdb.tar.gz
rust-5de2a24b2ebfa42db8eadab911a107b4a67fabdb.zip
Auto merge of #39287 - wesleywiser:move_cell, r=aturon
Extend Cell to work with non-Copy types

I'm not sure that I did this right but all of the tests pass.

I also had to move the `new()` function so that `Cell`s with non-`Copy` `T`s could be created. That wasn't in the RFC but I assume it needed to be done?
Diffstat (limited to 'src/libcoretest/lib.rs')
-rw-r--r--src/libcoretest/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcoretest/lib.rs b/src/libcoretest/lib.rs
index 8e5893b5ecb..87f3afd6889 100644
--- a/src/libcoretest/lib.rs
+++ b/src/libcoretest/lib.rs
@@ -33,6 +33,7 @@
 #![feature(unique)]
 #![feature(ordering_chaining)]
 #![feature(ptr_unaligned)]
+#![feature(move_cell)]
 
 extern crate core;
 extern crate test;