diff options
Diffstat (limited to 'embassy-sync')
| -rw-r--r-- | embassy-sync/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-sync/tests/ui/sync_impl/lazy_lock_function.stderr | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/embassy-sync/Cargo.toml b/embassy-sync/Cargo.toml index 6494da727..64d76baba 100644 --- a/embassy-sync/Cargo.toml +++ b/embassy-sync/Cargo.toml | |||
| @@ -27,6 +27,8 @@ src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-sync/ | |||
| 27 | target = "thumbv7em-none-eabi" | 27 | target = "thumbv7em-none-eabi" |
| 28 | 28 | ||
| 29 | [features] | 29 | [features] |
| 30 | defmt = ["dep:defmt"] | ||
| 31 | log = ["dep:log"] | ||
| 30 | std = [] | 32 | std = [] |
| 31 | turbowakers = [] | 33 | turbowakers = [] |
| 32 | 34 | ||
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` |
