1
Fork 0

Move "unused_exter_crate" test from rustdoc-ui to rustdoc

This commit is contained in:
Yotam Ofek 2025-02-27 13:20:52 +00:00
parent 660241d1d4
commit 0881dba5d3
2 changed files with 1 additions and 1 deletions

View file

@ -1,17 +0,0 @@
//@ no-prefer-dynamic
#![crate_type = "lib"]
#![no_std]
#![feature(lang_items)]
use core::panic::PanicInfo;
use core::sync::atomic::{self, Ordering};
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {
atomic::compiler_fence(Ordering::SeqCst);
}
}
#[lang = "eh_personality"]
fn foo() {}

View file

@ -1,2 +0,0 @@
//@ check-pass
//@ aux-crate:panic_item=panic-item.rs