@@ -51,14 +51,6 @@ bitflags! {
51
51
}
52
52
}
53
53
54
- impl Cr0Flags {
55
- #[ deprecated = "use the safe `from_bits_retain` method instead" ]
56
- /// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
57
- pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
58
- Self :: from_bits_retain ( bits)
59
- }
60
- }
61
-
62
54
/// Contains the Page Fault Linear Address (PFLA).
63
55
///
64
56
/// When a page fault occurs, the CPU sets this register to the faulting virtual address.
@@ -82,14 +74,6 @@ bitflags! {
82
74
}
83
75
}
84
76
85
- impl Cr3Flags {
86
- #[ deprecated = "use the safe `from_bits_retain` method instead" ]
87
- /// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
88
- pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
89
- Self :: from_bits_retain ( bits)
90
- }
91
- }
92
-
93
77
/// Contains various control flags that enable architectural extensions, and
94
78
/// indicate support for specific processor capabilities.
95
79
#[ derive( Debug ) ]
@@ -175,14 +159,6 @@ bitflags! {
175
159
}
176
160
}
177
161
178
- impl Cr4Flags {
179
- #[ deprecated = "use the safe `from_bits_retain` method instead" ]
180
- /// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
181
- pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
182
- Self :: from_bits_retain ( bits)
183
- }
184
- }
185
-
186
162
#[ cfg( feature = "instructions" ) ]
187
163
mod x86_64 {
188
164
use super :: * ;
0 commit comments