libcore: Fix a use of the shape glue in TLS

This commit is contained in:
Patrick Walton 2012-08-27 17:37:31 -07:00
parent 9c04454e7b
commit daf10a2a6c

View File

@ -1396,7 +1396,7 @@ unsafe fn local_set<T: owned>(
} }
None => { None => {
// Find an empty slot. If not, grow the vector. // 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), Some(empty_index) => (*map).set_elt(empty_index, new_entry),
None => (*map).push(new_entry) None => (*map).push(new_entry)
} }