Skip to content

Commit 5196e91

Browse files
authored
Rollup merge of #108431 - GuillaumeGomez:regression-test-for-107918, r=notriddle
Add regression test for #107918 Fixes #107918. r? ```@notriddle```
2 parents fa10a21 + c934ee8 commit 5196e91

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-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

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

0 commit comments

Comments
 (0)