diff options
| author | Eric Huss <eric@huss.org> | 2022-01-30 08:37:46 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-30 08:37:46 -0800 |
| commit | 0610d4fa66f95fa3a4a7af86239976ed668bab0e (patch) | |
| tree | 077c6754dc195449445e9089af4f2fccd3de9667 /library/std/src/sync/mutex.rs | |
| parent | 7cc28c128be0363d83accf318b87b40ba6168384 (diff) | |
| parent | 5b3462c556932234c6bae24c6f90c55a463f23c3 (diff) | |
Rollup merge of #92887 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrum
Bootstrap compiler update r? ``@Mark-Simulacrum``
Diffstat (limited to 'library/std/src/sync/mutex.rs')
| -rw-r--r-- | library/std/src/sync/mutex.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/library/std/src/sync/mutex.rs b/library/std/src/sync/mutex.rs index 57f1dcca30e..3ea0a6c3937 100644 --- a/library/std/src/sync/mutex.rs +++ b/library/std/src/sync/mutex.rs @@ -188,12 +188,9 @@ unsafe impl<T: ?Sized + Send> Sync for Mutex<T> {} /// [`lock`]: Mutex::lock /// [`try_lock`]: Mutex::try_lock #[must_use = "if unused the Mutex will immediately unlock"] -#[cfg_attr( - not(bootstrap), - must_not_suspend = "holding a MutexGuard across suspend \ +#[must_not_suspend = "holding a MutexGuard across suspend \ points can cause deadlocks, delays, \ - and cause Futures to not implement `Send`" -)] + and cause Futures to not implement `Send`"] #[stable(feature = "rust1", since = "1.0.0")] pub struct MutexGuard<'a, T: ?Sized + 'a> { lock: &'a Mutex<T>, |
