Rollup merge of #108431 - GuillaumeGomez:regression-test-for-107918, r=notriddle
Add regression test for #107918 Fixes https://github.com/rust-lang/rust/issues/107918. r? ```@notriddle```
This commit is contained in:
commit
5196e9114c
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 {}
|
||||||
|
}
|
12
tests/rustdoc-ui/issue-107918.rs
Normal file
12
tests/rustdoc-ui/issue-107918.rs
Normal file
@ -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 {}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user