File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed
Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff 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 ]
1919rust_embedded = [
Original file line number Diff line number Diff line change 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 "
44components = [" miri" , " rust-src" ]
Original file line number Diff line number Diff line change 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 "
99components = [" clippy" , " rustfmt" ]
1010targets = [
1111 " thumbv6m-none-eabi" ,
Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments