From ee2ad4dfb1b7d3a07604efc6d9eb618d0fe3bf7d Mon Sep 17 00:00:00 2001 From: Pavel Grigorenko Date: Mon, 23 Dec 2024 19:36:41 +0300 Subject: Move some things to `std::sync::poison` and reexport them in `std::sync` --- tests/debuginfo/mutex.rs | 6 +++--- tests/debuginfo/rwlock-read.rs | 4 ++-- tests/debuginfo/rwlock-write.rs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/debuginfo') diff --git a/tests/debuginfo/mutex.rs b/tests/debuginfo/mutex.rs index 4f458c0d7e0..c47e3ac6dce 100644 --- a/tests/debuginfo/mutex.rs +++ b/tests/debuginfo/mutex.rs @@ -9,7 +9,7 @@ // cdb-command:g // // cdb-command:dx m,d -// cdb-check:m,d [Type: std::sync::mutex::Mutex] +// cdb-check:m,d [Type: std::sync::poison::mutex::Mutex] // cdb-check: [...] inner [Type: std::sys::sync::mutex::futex::Mutex] // cdb-check: [...] poison [Type: std::sync::poison::Flag] // cdb-check: [...] data : 0 [Type: core::cell::UnsafeCell] @@ -21,8 +21,8 @@ // // cdb-command:dx _lock,d -// cdb-check:_lock,d : Ok [Type: enum2$,enum2$ > > > >] -// cdb-check: [...] __0 [Type: std::sync::mutex::MutexGuard] +// cdb-check:_lock,d : Ok [Type: enum2$,enum2$ > > > >] +// cdb-check: [...] __0 [Type: std::sync::poison::mutex::MutexGuard] use std::sync::Mutex; diff --git a/tests/debuginfo/rwlock-read.rs b/tests/debuginfo/rwlock-read.rs index 3fd6ac33726..825cdbe5510 100644 --- a/tests/debuginfo/rwlock-read.rs +++ b/tests/debuginfo/rwlock-read.rs @@ -9,12 +9,12 @@ // cdb-command:g // // cdb-command:dx l -// cdb-check:l [Type: std::sync::rwlock::RwLock] +// cdb-check:l [Type: std::sync::poison::rwlock::RwLock] // cdb-check: [...] poison [Type: std::sync::poison::Flag] // cdb-check: [...] data : 0 [Type: core::cell::UnsafeCell] // // cdb-command:dx r -// cdb-check:r [Type: std::sync::rwlock::RwLockReadGuard] +// cdb-check:r [Type: std::sync::poison::rwlock::RwLockReadGuard] // cdb-check: [...] data : NonNull([...]: 0) [Type: core::ptr::non_null::NonNull] // cdb-check: [...] inner_lock : [...] [Type: std::sys::sync::rwlock::futex::RwLock *] diff --git a/tests/debuginfo/rwlock-write.rs b/tests/debuginfo/rwlock-write.rs index d7864303666..aaca048b8a7 100644 --- a/tests/debuginfo/rwlock-write.rs +++ b/tests/debuginfo/rwlock-write.rs @@ -9,8 +9,8 @@ // cdb-command:g // // cdb-command:dx w -// cdb-check:w [Type: std::sync::rwlock::RwLockWriteGuard] -// cdb-check: [...] lock : [...] [Type: std::sync::rwlock::RwLock *] +// cdb-check:w [Type: std::sync::poison::rwlock::RwLockWriteGuard] +// cdb-check: [...] lock : [...] [Type: std::sync::poison::rwlock::RwLock *] // cdb-check: [...] poison [Type: std::sync::poison::Guard] #[allow(unused_variables)] -- cgit 1.4.1-3-g733a5