about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-08-27 17:37:31 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-08-27 17:37:31 -0700
commitdaf10a2a6cea617632755fe68da18ddfb848b20a (patch)
treea3eae683b2c93b61f77c893dabea451cb6c27424
parent9c04454e7bb4aeb6592bc0164fce182d0a83e754 (diff)
libcore: Fix a use of the shape glue in TLS
-rw-r--r--src/libcore/task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/task.rs b/src/libcore/task.rs
index 86992385fe1..0e5b8be4d36 100644
--- a/src/libcore/task.rs
+++ b/src/libcore/task.rs
@@ -1396,7 +1396,7 @@ unsafe fn local_set<T: owned>(
         }
         None => {
             // Find an empty slot. If not, grow the vector.
-            match (*map).position(|x| x == None) {
+            match (*map).position(|x| x.is_none()) {
                 Some(empty_index) => (*map).set_elt(empty_index, new_entry),
                 None => (*map).push(new_entry)
             }