Skip to content

Commit 16db45a

Browse files
tests: add unreachable intrinsic to minicore
1 parent 513999b commit 16db45a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/auxiliary/minicore.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,16 @@ trait Drop {
198198
fn drop(&mut self);
199199
}
200200

201+
pub mod hint {
202+
pub use super::intrinsics::unreachable as unreachable_unchecked;
203+
}
204+
205+
pub mod intrinsics {
206+
#[rustc_nounwind]
207+
#[rustc_intrinsic]
208+
pub unsafe fn unreachable() -> !;
209+
}
210+
201211
pub mod mem {
202212
#[rustc_nounwind]
203213
#[rustc_intrinsic]

0 commit comments

Comments
 (0)