Skip to content

Commit

Permalink
Add regression test for #107918
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Feb 24, 2023
1 parent 07c993e commit 37d4302
Show file tree
Hide file tree
Showing 2 changed files with 20 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 {}
}
11 changes: 11 additions & 0 deletions tests/rustdoc-ui/issue-107918.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// aux-build:panic-handler.rs
// compile-flags: --document-private-items
// build-pass

#![no_std]
#![no_main]

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

0 comments on commit 37d4302

Please sign in to comment.