rust/tests/run-make/external-crate-panic-handle-no-lint/rmake.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
448 B
Rust
Raw Normal View History

2024-05-17 14:37:16 -05:00
// Defining a crate that provides panic handling as an external crate
// could uselessly trigger the "unused external crate" lint. In this test,
// if the lint is triggered, it will trip #![deny(unused_extern_crates)],
// and cause the test to fail.
// See https://github.com/rust-lang/rust/issues/53964
use run_make_support::rustc;
2024-05-17 14:37:16 -05:00
fn main() {
rustc().input("panic.rs").run();
rustc().input("app.rs").panic("abort").emit("obj").run();
2024-05-17 14:37:16 -05:00
}