We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
VeryUnsafeCell
RacyCell
1 parent 230da17 commit 74ead92Copy full SHA for 74ead92
1 file changed
uefi/src/main.rs
@@ -34,19 +34,19 @@ use x86_64::{
34
35
mod memory_descriptor;
36
37
-static SYSTEM_TABLE: VeryUnsafeCell<Option<SystemTable<Boot>>> = VeryUnsafeCell::new(None);
+static SYSTEM_TABLE: RacyCell<Option<SystemTable<Boot>>> = RacyCell::new(None);
38
39
-struct VeryUnsafeCell<T>(UnsafeCell<T>);
+struct RacyCell<T>(UnsafeCell<T>);
40
41
-impl<T> VeryUnsafeCell<T> {
+impl<T> RacyCell<T> {
42
const fn new(v: T) -> Self {
43
Self(UnsafeCell::new(v))
44
}
45
46
47
-unsafe impl<T> Sync for VeryUnsafeCell<T> {}
+unsafe impl<T> Sync for RacyCell<T> {}
48
49
-impl<T> core::ops::Deref for VeryUnsafeCell<T> {
+impl<T> core::ops::Deref for RacyCell<T> {
50
type Target = UnsafeCell<T>;
51
52
fn deref(&self) -> &Self::Target {
0 commit comments