mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
Add regression test for #107918
This commit is contained in:
parent
07c993eba8
commit
37d4302c25
9
tests/rustdoc-ui/auxiliary/panic-handler.rs
Normal file
9
tests/rustdoc-ui/auxiliary/panic-handler.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// compile-flags: -C panic=abort
|
||||
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
#[panic_handler]
|
||||
fn panic(_: &core::panic::PanicInfo) -> ! {
|
||||
loop {}
|
||||
}
|
11
tests/rustdoc-ui/issue-107918.rs
Normal file
11
tests/rustdoc-ui/issue-107918.rs
Normal file
@ -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 {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user