We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
no_threads.rs
teeos.rs
1 parent 15078e6 commit 53bce7bCopy full SHA for 53bce7b
library/std/src/sys/sync/rwlock/no_threads.rs
@@ -65,6 +65,6 @@ impl RwLock {
65
66
#[inline]
67
pub unsafe fn downgrade(&self) {
68
- todo!()
+ assert_eq!(self.mode.replace(1), -1);
69
}
70
library/std/src/sys/sync/rwlock/teeos.rs
@@ -43,7 +43,5 @@ impl RwLock {
43
44
45
46
- pub unsafe fn downgrade(&self) {
47
48
- }
+ pub unsafe fn downgrade(&self) {}
49
0 commit comments