diff options
Diffstat (limited to 'src/libstd/sync/semaphore.rs')
| -rw-r--r-- | src/libstd/sync/semaphore.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/sync/semaphore.rs b/src/libstd/sync/semaphore.rs index 891f8775ff2..8f08c840c21 100644 --- a/src/libstd/sync/semaphore.rs +++ b/src/libstd/sync/semaphore.rs @@ -12,6 +12,10 @@ reason = "the interaction between semaphores and the acquisition/release \ of resources is currently unclear", issue = "27798")] +#![rustc_deprecated(since = "1.7.0", + reason = "easily confused with system sempahores and not \ + used enough to pull its weight")] +#![allow(deprecated)] use ops::Drop; use sync::{Mutex, Condvar}; |
