File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -625,8 +625,7 @@ impl Sub<PhysAddr> for PhysAddr {
625
625
///
626
626
/// Returns the greatest `x` with alignment `align` so that `x <= addr`.
627
627
///
628
- /// Panics if the alignment is not a power of two. Without the `const_fn`
629
- /// feature, the panic message will be "index out of bounds".
628
+ /// Panics if the alignment is not a power of two.
630
629
#[ inline]
631
630
pub const fn align_down ( addr : u64 , align : u64 ) -> u64 {
632
631
assert ! ( align. is_power_of_two( ) , "`align` must be a power of two" ) ;
@@ -637,8 +636,7 @@ pub const fn align_down(addr: u64, align: u64) -> u64 {
637
636
///
638
637
/// Returns the smallest `x` with alignment `align` so that `x >= addr`.
639
638
///
640
- /// Panics if the alignment is not a power of two. Without the `const_fn`
641
- /// feature, the panic message will be "index out of bounds".
639
+ /// Panics if the alignment is not a power of two.
642
640
#[ inline]
643
641
pub const fn align_up ( addr : u64 , align : u64 ) -> u64 {
644
642
assert ! ( align. is_power_of_two( ) , "`align` must be a power of two" ) ;
Original file line number Diff line number Diff line change @@ -96,8 +96,7 @@ impl GlobalDescriptorTable {
96
96
const_fn ! {
97
97
/// Adds the given segment descriptor to the GDT, returning the segment selector.
98
98
///
99
- /// Panics if the GDT has no free entries left. Without the `const_fn`
100
- /// feature, the panic message will be "index out of bounds".
99
+ /// Panics if the GDT has no free entries left.
101
100
#[ inline]
102
101
pub fn add_entry( & mut self , entry: Descriptor ) -> SegmentSelector {
103
102
let index = match entry {
You can’t perform that action at this time.
0 commit comments