File tree Expand file tree Collapse file tree 9 files changed +13
-13
lines changed Expand file tree Collapse file tree 9 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ bitflags! {
54
54
impl Cr0Flags {
55
55
#[ deprecated = "use the safe `from_bits_retain` method instead" ]
56
56
/// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
57
- pub unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
57
+ pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
58
58
Self :: from_bits_retain ( bits)
59
59
}
60
60
}
@@ -85,7 +85,7 @@ bitflags! {
85
85
impl Cr3Flags {
86
86
#[ deprecated = "use the safe `from_bits_retain` method instead" ]
87
87
/// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
88
- pub unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
88
+ pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
89
89
Self :: from_bits_retain ( bits)
90
90
}
91
91
}
@@ -181,7 +181,7 @@ bitflags! {
181
181
impl Cr4Flags {
182
182
#[ deprecated = "use the safe `from_bits_retain` method instead" ]
183
183
/// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
184
- pub unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
184
+ pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
185
185
Self :: from_bits_retain ( bits)
186
186
}
187
187
}
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ impl Dr6Flags {
163
163
164
164
#[ deprecated = "use the safe `from_bits_retain` method instead" ]
165
165
/// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
166
- pub unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
166
+ pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
167
167
Self :: from_bits_retain ( bits)
168
168
}
169
169
}
@@ -242,7 +242,7 @@ impl Dr7Flags {
242
242
243
243
#[ deprecated = "use the safe `from_bits_retain` method instead" ]
244
244
/// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
245
- pub unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
245
+ pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
246
246
Self :: from_bits_retain ( bits)
247
247
}
248
248
}
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ bitflags! {
135
135
impl EferFlags {
136
136
#[ deprecated = "use the safe `from_bits_retain` method instead" ]
137
137
/// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
138
- pub unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
138
+ pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
139
139
Self :: from_bits_retain ( bits)
140
140
}
141
141
}
@@ -168,7 +168,7 @@ bitflags! {
168
168
impl CetFlags {
169
169
#[ deprecated = "use the safe `from_bits_retain` method instead" ]
170
170
/// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
171
- pub unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
171
+ pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
172
172
Self :: from_bits_retain ( bits)
173
173
}
174
174
}
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ impl Default for MxCsr {
63
63
impl MxCsr {
64
64
#[ deprecated = "use the safe `from_bits_retain` method instead" ]
65
65
/// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
66
- pub unsafe fn from_bits_unchecked ( bits : u32 ) -> Self {
66
+ pub const unsafe fn from_bits_unchecked ( bits : u32 ) -> Self {
67
67
Self :: from_bits_retain ( bits)
68
68
}
69
69
}
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ bitflags! {
67
67
impl RFlags {
68
68
#[ deprecated = "use the safe `from_bits_retain` method instead" ]
69
69
/// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
70
- pub unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
70
+ pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
71
71
Self :: from_bits_retain ( bits)
72
72
}
73
73
}
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ bitflags! {
56
56
impl XCr0Flags {
57
57
#[ deprecated = "use the safe `from_bits_retain` method instead" ]
58
58
/// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
59
- pub unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
59
+ pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
60
60
Self :: from_bits_retain ( bits)
61
61
}
62
62
}
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ impl DescriptorFlags {
272
272
273
273
#[ deprecated = "use the safe `from_bits_retain` method instead" ]
274
274
/// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
275
- pub unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
275
+ pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
276
276
Self :: from_bits_retain ( bits)
277
277
}
278
278
}
Original file line number Diff line number Diff line change @@ -1012,7 +1012,7 @@ bitflags! {
1012
1012
impl PageFaultErrorCode {
1013
1013
#[ deprecated = "use the safe `from_bits_retain` method instead" ]
1014
1014
/// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
1015
- pub unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
1015
+ pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
1016
1016
Self :: from_bits_retain ( bits)
1017
1017
}
1018
1018
}
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ bitflags! {
172
172
impl PageTableFlags {
173
173
#[ deprecated = "use the safe `from_bits_retain` method instead" ]
174
174
/// Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
175
- pub unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
175
+ pub const unsafe fn from_bits_unchecked ( bits : u64 ) -> Self {
176
176
Self :: from_bits_retain ( bits)
177
177
}
178
178
}
You can’t perform that action at this time.
0 commit comments