File tree Expand file tree Collapse file tree 4 files changed +15
-24
lines changed
run-make/external-crate-panic-handle-no-lint
ui/external-crate-panic-handle-no-lint Expand file tree Collapse file tree 4 files changed +15
-24
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments