Skip to content

Commit 37d4302

Browse files
Add regression test for #107918
1 parent 07c993e commit 37d4302

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// compile-flags: -C panic=abort
2+
3+
#![no_std]
4+
#![no_main]
5+
6+
#[panic_handler]
7+
fn panic(_: &core::panic::PanicInfo) -> ! {
8+
loop {}
9+
}

tests/rustdoc-ui/issue-107918.rs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// aux-build:panic-handler.rs
2+
// compile-flags: --document-private-items
3+
// build-pass
4+
5+
#![no_std]
6+
#![no_main]
7+
8+
#[panic_handler]
9+
fn panic(_: &core::panic::PanicInfo) -> ! {
10+
loop {}
11+
}

0 commit comments

Comments
 (0)