Skip to content

Commit 5fabeb8

Browse files
committed
Attempt transition to ui test
1 parent ed1e373 commit 5fabeb8

File tree

4 files changed

+15
-24
lines changed

4 files changed

+15
-24
lines changed

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

Lines changed: 0 additions & 8 deletions
This file was deleted.

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

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//@ compile-flags: -Cpanic=abort --emit=obj
2+
3+
// Defining a crate that provides panic handling as an external crate
4+
// could uselessly trigger the "unused external crate" lint. This was fixed,
5+
// and this test checks that the fix did not break compiler functionality.
6+
// See https://github.com/rust-lang/rust/issues/53964
7+
8+
#![crate_type = "bin"]
9+
#![no_main]
10+
#![no_std]
11+
12+
#![deny(unused_extern_crates)]
13+
14+
// `panic` provides a `panic_handler` so it shouldn't trip the `unused_extern_crates` lint
15+
extern crate panic;

0 commit comments

Comments
 (0)