fixes for latest nightly
This commit is contained in:
1 parent
1a8fadf226
commit
88d7fb32d4
2 files changed
+2
-2
No files matched your search
@@ -5,7 +5,7 @@
|
|||||||
"data-layout": "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i128:128-f64:32:64-f80:32-n8:16:32-S128",
|
"data-layout": "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i128:128-f64:32:64-f80:32-n8:16:32-S128",
|
||||||
"target-endian": "little",
|
"target-endian": "little",
|
||||||
"target-pointer-width": "32",
|
"target-pointer-width": "32",
|
||||||
"target-c-int-width": "32",
|
"target-c-int-width": 32,
|
||||||
"executables": true,
|
"executables": true,
|
||||||
"linker-flavor": "ld.lld",
|
"linker-flavor": "ld.lld",
|
||||||
"linker": "rust-lld",
|
"linker": "rust-lld",
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ impl<T> Spinlock<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn lock(&self) -> SpinlockGuard<T> {
|
pub fn lock(&self) -> SpinlockGuard<'_, T> {
|
||||||
// If we observe `locked` was `false`, then:
|
// If we observe `locked` was `false`, then:
|
||||||
// - Use acquire ordering, so nothing inside the critical section gets reordered before we
|
// - Use acquire ordering, so nothing inside the critical section gets reordered before we
|
||||||
// observed the `false` value.
|
// observed the `false` value.
|
||||||
|
|||||||
Reference in new issue
Block a user