File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -445,7 +445,10 @@ impl PhysAddr {
445
445
/// If the `memory_encryption` feature is available and has been enabled, this function also
446
446
/// panics fails if the encryption bit is manually set in the address.
447
447
#[ inline]
448
- #[ cfg_attr( all( not( feature = "memory_encryption" ) , feature = "const_fn" ) , const_fn:: const_fn) ]
448
+ #[ cfg_attr(
449
+ all( not( feature = "memory_encryption" ) , feature = "const_fn" ) ,
450
+ const_fn:: const_fn
451
+ ) ]
449
452
pub fn new ( addr : u64 ) -> Self {
450
453
// TODO: Replace with .ok().expect(msg) when that works on stable.
451
454
match Self :: try_new ( addr) {
@@ -470,7 +473,10 @@ impl PhysAddr {
470
473
/// If the `memory_encryption` feature is available and has been enabled, this also fails if the
471
474
/// encryption bit is manually set in the address.
472
475
#[ inline]
473
- #[ cfg_attr( all( not( feature = "memory_encryption" ) , feature = "const_fn" ) , const_fn:: const_fn) ]
476
+ #[ cfg_attr(
477
+ all( not( feature = "memory_encryption" ) , feature = "const_fn" ) ,
478
+ const_fn:: const_fn
479
+ ) ]
474
480
pub fn try_new ( addr : u64 ) -> Result < Self , PhysAddrNotValid > {
475
481
let p = Self :: new_truncate ( addr) ;
476
482
if p. 0 == addr {
Original file line number Diff line number Diff line change @@ -52,7 +52,10 @@ impl PageTableEntry {
52
52
53
53
/// Returns the flags of this entry.
54
54
#[ inline]
55
- #[ cfg_attr( all( not( feature = "memory_encryption" ) , feature = "const_fn" ) , const_fn:: const_fn) ]
55
+ #[ cfg_attr(
56
+ all( not( feature = "memory_encryption" ) , feature = "const_fn" ) ,
57
+ const_fn:: const_fn
58
+ ) ]
56
59
pub fn flags ( & self ) -> PageTableFlags {
57
60
PageTableFlags :: from_bits_retain ( self . entry & !Self :: physical_address_mask ( ) )
58
61
}
You can’t perform that action at this time.
0 commit comments