Skip to content

Commit

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

Add regression test for rust-lang#107918

Fixes rust-lang#107918.

r? `@notriddle`
  • Loading branch information
matthiaskrgr committed Feb 24, 2023
2 parents cd9630c + 37d4302 commit d93b438
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 d93b438

Please sign in to comment.