Skip to content

Commit daf10a2

Browse files
committed
libcore: Fix a use of the shape glue in TLS
1 parent 9c04454 commit daf10a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ unsafe fn local_set<T: owned>(
13961396
}
13971397
None => {
13981398
// Find an empty slot. If not, grow the vector.
1399-
match (*map).position(|x| x == None) {
1399+
match (*map).position(|x| x.is_none()) {
14001400
Some(empty_index) => (*map).set_elt(empty_index, new_entry),
14011401
None => (*map).push(new_entry)
14021402
}

0 commit comments

Comments
 (0)