Skip to content

Commit f601144

Browse files
committed
Upgrade to rust 1.87
1 parent 94ec8b6 commit f601144

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ version = "0.1.0"
1313
[workspace.package]
1414
# This must be kept in sync with rust-toolchain.toml; please see that file for
1515
# more information.
16-
rust-version = "1.84"
16+
rust-version = "1.87"
1717

1818
[features]
1919
rust_embedded = [

nightly/rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# This is the nightly Rust toolchain used by `make test`.
22
[toolchain]
3-
channel = "nightly-2024-11-11"
3+
channel = "nightly-2025-05-19"
44
components = ["miri", "rust-src"]

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# you'd like to use. When you do so, update this to the first Rust version that
66
# includes that feature. Whenever this value is updated, the rust-version field
77
# in Cargo.toml must be updated as well.
8-
channel = "1.84"
8+
channel = "1.87"
99
components = ["clippy", "rustfmt" ]
1010
targets = [
1111
"thumbv6m-none-eabi",

unittest/src/share_data.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ mod tests {
174174
subscribe_num: 2
175175
}
176176
);
177-
assert!(upcall_queue_entry.upcall.fn_pointer == Some(upcall_ptr));
177+
assert!(
178+
upcall_queue_entry.upcall.fn_pointer.map(|f| f as *const ())
179+
== Some(upcall_ptr as *const _)
180+
);
178181
let data: usize = upcall_queue_entry.upcall.data.into();
179182
assert_eq!(data, 1111);
180183

@@ -207,7 +210,10 @@ mod tests {
207210
subscribe_num: 2
208211
}
209212
);
210-
assert!(front_queue_entry.upcall.fn_pointer == Some(upcall_ptr));
213+
assert!(
214+
front_queue_entry.upcall.fn_pointer.map(|f| f as *const ())
215+
== Some(upcall_ptr as *const _)
216+
);
211217
let front_data: usize = front_queue_entry.upcall.data.into();
212218
assert_eq!(front_data, 1111);
213219
let back_queue_entry = kernel_data.upcall_queue.back().expect("Upcall not queued");
@@ -219,7 +225,10 @@ mod tests {
219225
subscribe_num: 2
220226
}
221227
);
222-
assert!(back_queue_entry.upcall.fn_pointer == Some(upcall_ptr));
228+
assert!(
229+
back_queue_entry.upcall.fn_pointer.map(|f| f as *const ())
230+
== Some(upcall_ptr as *const _)
231+
);
223232
let back_data: usize = back_queue_entry.upcall.data.into();
224233
assert_eq!(back_data, 2222);
225234
});

0 commit comments

Comments
 (0)