File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -614,7 +614,7 @@ impl<T, const N: usize> Cell<[T; N]> {
614
614
/// A mutable memory location with dynamically checked borrow rules
615
615
///
616
616
/// See the [module-level documentation](self) for more.
617
- #[ rustc_diagnostic_item = "RefCell" ]
617
+ #[ cfg_attr ( not ( test ) , rustc_diagnostic_item = "RefCell" ) ]
618
618
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
619
619
pub struct RefCell < T : ?Sized > {
620
620
borrow : Cell < BorrowFlag > ,
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ use crate::sys_common::rwlock as sys;
76
76
///
77
77
/// [`Mutex`]: super::Mutex
78
78
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
79
+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "RwLock" ) ]
79
80
pub struct RwLock < T : ?Sized > {
80
81
inner : sys:: MovableRwLock ,
81
82
poison : poison:: Flag ,
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ use crate::fmt;
95
95
/// [loader lock]: https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-best-practices
96
96
/// [`JoinHandle::join`]: crate::thread::JoinHandle::join
97
97
/// [`with`]: LocalKey::with
98
- #[ rustc_diagnostic_item = "LocalKey" ]
98
+ #[ cfg_attr ( not ( test ) , rustc_diagnostic_item = "LocalKey" ) ]
99
99
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
100
100
pub struct LocalKey < T : ' static > {
101
101
// This outer `LocalKey<T>` type is what's going to be stored in statics,
You can’t perform that action at this time.
0 commit comments