Skip to content

Commit e447d88

Browse files
author
Tom Dohrmann
committed
skip set_general_handler in doctests on windows
1 parent 9b0065d commit e447d88

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/structures/idt.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1141,12 +1141,21 @@ pub enum ExceptionVector {
11411141
/// }
11421142
///
11431143
/// // set only one entry
1144+
/// # // there seems to be a bug in LLVM that causes rustc to crash on windows when compiling this test:
1145+
/// # // https://github.com/rust-osdev/x86_64/pull/285#issuecomment-962642984
1146+
/// # #[cfg(not(windows))]
11441147
/// set_general_handler!(&mut idt, my_general_handler, 14);
11451148
///
11461149
/// // set a range of entries
1150+
/// # // there seems to be a bug in LLVM that causes rustc to crash on windows when compiling this test:
1151+
/// # // https://github.com/rust-osdev/x86_64/pull/285#issuecomment-962642984
1152+
/// # #[cfg(not(windows))]
11471153
/// set_general_handler!(&mut idt, my_general_handler, 32..64);
11481154
///
11491155
/// // set all entries
1156+
/// # // there seems to be a bug in LLVM that causes rustc to crash on windows when compiling this test:
1157+
/// # // https://github.com/rust-osdev/x86_64/pull/285#issuecomment-962642984
1158+
/// # #[cfg(not(windows))]
11501159
/// set_general_handler!(&mut idt, my_general_handler);
11511160
/// ```
11521161
macro_rules! set_general_handler {

0 commit comments

Comments
 (0)