Skip to content

Commit c3bd70b

Browse files
committed
Fix failing CI by adding the #[cfg(feature = "instructions")] attribute
1 parent cca8110 commit c3bd70b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/structures/idt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,7 @@ impl InterruptStackFrameValue {
955955
/// CS and SS register can all cause undefined behaviour when done incorrectly.
956956
///
957957
#[inline(always)]
958+
#[cfg(feature = "instructions")]
958959
pub unsafe fn iretq(&self) -> ! {
959960
unsafe {
960961
core::arch::asm!(

0 commit comments

Comments
 (0)