From daf10a2a6cea617632755fe68da18ddfb848b20a Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 27 Aug 2012 17:37:31 -0700 Subject: [PATCH] libcore: Fix a use of the shape glue in TLS --- src/libcore/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/task.rs b/src/libcore/task.rs index 86992385fe14..0e5b8be4d363 100644 --- a/src/libcore/task.rs +++ b/src/libcore/task.rs @@ -1396,7 +1396,7 @@ unsafe fn local_set( } 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) }