Skip to content

Commit eb2da60

Browse files
Rollup merge of rust-lang#108431 - GuillaumeGomez:regression-test-for-107918, r=notriddle
Add regression test for rust-lang#107918 Fixes rust-lang#107918. r? `@notriddle`
2 parents a2329e0 + c934ee8 commit eb2da60

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)