Skip to content

Commit c88f926

Browse files
committed
Allow tests to pass without "instructions" feature
Signed-off-by: Joe Richey <joerichey@google.com>
1 parent ad2f3b3 commit c88f926

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/structures/idt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,7 @@ macro_rules! set_general_handler_entry {
13361336
mod test {
13371337
use super::*;
13381338

1339+
#[allow(dead_code)]
13391340
fn entry_present(idt: &InterruptDescriptorTable, index: usize) -> bool {
13401341
let options = match index {
13411342
8 => &idt.double_fault.options,

src/structures/paging/mapper/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,9 @@ pub trait CleanUp {
502502
/// ```
503503
/// # use core::ops::RangeInclusive;
504504
/// # use x86_64::{VirtAddr, structures::paging::{
505-
/// # FrameDeallocator, Size4KiB, MappedPageTable, mapper::{RecursivePageTable, CleanUp}, page::{Page, PageRangeInclusive},
505+
/// # FrameDeallocator, Size4KiB, mapper::CleanUp, page::Page,
506506
/// # }};
507-
/// # unsafe fn test(page_table: &mut RecursivePageTable, frame_deallocator: &mut impl FrameDeallocator<Size4KiB>) {
507+
/// # unsafe fn test(page_table: &mut impl CleanUp, frame_deallocator: &mut impl FrameDeallocator<Size4KiB>) {
508508
/// // clean up all page tables in the lower half of the address space
509509
/// let lower_half = Page::range_inclusive(
510510
/// Page::containing_address(VirtAddr::new(0)),

0 commit comments

Comments
 (0)