We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed1e373 commit 5fabeb8Copy full SHA for 5fabeb8
tests/run-make/external-crate-panic-handle-no-lint/app.rs
tests/run-make/external-crate-panic-handle-no-lint/rmake.rs
tests/ui/external-crate-panic-handle-no-lint/app.rs
@@ -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;
tests/run-make/external-crate-panic-handle-no-lint/panic.rs renamed to tests/ui/external-crate-panic-handle-no-lint/panic.rs
0 commit comments