diff options
| author | everdrone <[email protected]> | 2025-11-11 15:48:56 +0100 |
|---|---|---|
| committer | everdrone <[email protected]> | 2025-11-11 15:48:56 +0100 |
| commit | cede7216861a82b0db55f5a88afb3acf2ace6c4b (patch) | |
| tree | d92fb578897c77f51317318c5b180931b7b25c63 /embassy-sync/tests | |
| parent | cf55b39f9a54cf3ed01f52c0565a36a444174235 (diff) | |
| parent | 3d1f09597335d3681699ba09a77da4b39ed984fd (diff) | |
Merge branch main into n6
Diffstat (limited to 'embassy-sync/tests')
| -rw-r--r-- | embassy-sync/tests/ui/sync_impl/lazy_lock_function.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-sync/tests/ui/sync_impl/lazy_lock_function.stderr b/embassy-sync/tests/ui/sync_impl/lazy_lock_function.stderr index daf79ad28..417fb8e31 100644 --- a/embassy-sync/tests/ui/sync_impl/lazy_lock_function.stderr +++ b/embassy-sync/tests/ui/sync_impl/lazy_lock_function.stderr | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | error[E0277]: `*const u8` cannot be shared between threads safely | 1 | error[E0277]: `*const u8` cannot be shared between threads safely |
| 2 | --> tests/ui/sync_impl/lazy_lock_function.rs:8:16 | 2 | --> tests/ui/sync_impl/lazy_lock_function.rs:8:16 |
| 3 | | | 3 | | |
| 4 | 6 | let closure_capturing_non_sync_variable = || unsafe { core::ptr::read(x_ptr) }; | 4 | 6 | let closure_capturing_non_sync_variable = || unsafe { core::ptr::read(x_ptr) }; |
| 5 | | -- within this `{closure@$DIR/tests/ui/sync_impl/lazy_lock_function.rs:6:47: 6:49}` | 5 | | -- within this `{closure@$DIR/tests/ui/sync_impl/lazy_lock_function.rs:6:47: 6:49}` |
| 6 | 7 | | 6 | 7 | |
| 7 | 8 | check_sync(LazyLock::new(closure_capturing_non_sync_variable)); | 7 | 8 | check_sync(LazyLock::new(closure_capturing_non_sync_variable)); |
| 8 | | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const u8` cannot be shared between threads safely | 8 | | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const u8` cannot be shared between threads safely |
| 9 | | | | 9 | | | |
| 10 | | required by a bound introduced by this call | 10 | | required by a bound introduced by this call |
| @@ -14,7 +14,7 @@ error[E0277]: `*const u8` cannot be shared between threads safely | |||
| 14 | note: required because it's used within this closure | 14 | note: required because it's used within this closure |
| 15 | --> tests/ui/sync_impl/lazy_lock_function.rs:6:47 | 15 | --> tests/ui/sync_impl/lazy_lock_function.rs:6:47 |
| 16 | | | 16 | | |
| 17 | 6 | let closure_capturing_non_sync_variable = || unsafe { core::ptr::read(x_ptr) }; | 17 | 6 | let closure_capturing_non_sync_variable = || unsafe { core::ptr::read(x_ptr) }; |
| 18 | | ^^ | 18 | | ^^ |
| 19 | = note: required for `embassy_sync::lazy_lock::LazyLock<u8, {closure@$DIR/tests/ui/sync_impl/lazy_lock_function.rs:6:47: 6:49}>` to implement `Sync` | 19 | = note: required for `embassy_sync::lazy_lock::LazyLock<u8, {closure@$DIR/tests/ui/sync_impl/lazy_lock_function.rs:6:47: 6:49}>` to implement `Sync` |
| 20 | note: required by a bound in `check_sync` | 20 | note: required by a bound in `check_sync` |
