Skip to content

Commit

Permalink
Rollup merge of #108431 - GuillaumeGomez:regression-test-for-107918, …
Browse files Browse the repository at this point in the history
…r=notriddle

Add regression test for #107918

Fixes #107918.

r? ```@notriddle```
  • Loading branch information
matthiaskrgr committed Feb 25, 2023
2 parents fa10a21 + c934ee8 commit 5196e91
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/rustdoc-ui/auxiliary/panic-handler.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// compile-flags: -C panic=abort

#![no_std]
#![no_main]

#[panic_handler]
fn panic(_: &core::panic::PanicInfo) -> ! {
loop {}
}
12 changes: 12 additions & 0 deletions tests/rustdoc-ui/issue-107918.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// aux-build:panic-handler.rs
// compile-flags: --document-private-items
// build-pass
// ignore-windows

#![no_std]
#![no_main]

#[panic_handler]
fn panic(_: &core::panic::PanicInfo) -> ! {
loop {}
}

0 comments on commit 5196e91

Please sign in to comment.