about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStjepan Glavina <stjepang@gmail.com>2018-04-06 22:45:31 +0200
committerStjepan Glavina <stjepang@gmail.com>2018-04-06 22:45:31 +0200
commit5dcce519469690d09704b82d53417b67915adb94 (patch)
tree2a3218536b4bbfb1b746a380f819184f30621610
parent9377340ee3f638fcb011afd5a818d6e6b66c2d27 (diff)
downloadrust-5dcce519469690d09704b82d53417b67915adb94.tar.gz
rust-5dcce519469690d09704b82d53417b67915adb94.zip
Fix the failing tests
-rw-r--r--src/libcore/cell.rs2
-rw-r--r--src/libcore/tests/lib.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs
index c0f7183b06c..e4a52d9c4a4 100644
--- a/src/libcore/cell.rs
+++ b/src/libcore/cell.rs
@@ -262,6 +262,8 @@ impl<T:Copy> Cell<T> {
     /// # Examples
     ///
     /// ```
+    /// #![feature(cell_update)]
+    ///
     /// use std::cell::Cell;
     ///
     /// let c = Cell::new(5);
diff --git a/src/libcore/tests/lib.rs b/src/libcore/tests/lib.rs
index de7211e718c..13c53f47b69 100644
--- a/src/libcore/tests/lib.rs
+++ b/src/libcore/tests/lib.rs
@@ -12,6 +12,7 @@
 
 #![feature(ascii_ctype)]
 #![feature(box_syntax)]
+#![feature(cell_update)]
 #![feature(core_float)]
 #![feature(core_private_bignum)]
 #![feature(core_private_diy_float)]