Skip to content

Commit 5b87185

Browse files
committed
Add an explicit type to silence a future compatibility warning
requeue_threads` now requires an explicit type because of the `is_null` method call later in the code. See rust-lang/rust#46906
1 parent fa6e0b4 commit 5b87185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/parking_lot.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ unsafe fn unpark_requeue_internal(
890890
let mut link = &bucket_from.queue_head;
891891
let mut current = bucket_from.queue_head.get();
892892
let mut previous = ptr::null();
893-
let mut requeue_threads = ptr::null();
893+
let mut requeue_threads: *const ThreadData = ptr::null();
894894
let mut requeue_threads_tail: *const ThreadData = ptr::null();
895895
let mut wakeup_thread = None;
896896
while !current.is_null() {

0 commit comments

Comments
 (0)