mirror of https://github.com/rust-lang/rust.git
rewrite and rename issue-53964
This commit is contained in:
parent
ddba1dc97e
commit
dd7e68b356
|
@ -116,7 +116,6 @@ run-make/issue-46239/Makefile
|
|||
run-make/issue-47384/Makefile
|
||||
run-make/issue-47551/Makefile
|
||||
run-make/issue-51671/Makefile
|
||||
run-make/issue-53964/Makefile
|
||||
run-make/issue-64153/Makefile
|
||||
run-make/issue-68794-textrel-on-minimal-lib/Makefile
|
||||
run-make/issue-69368/Makefile
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
// 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, tmp_dir};
|
||||
|
||||
fn main() {
|
||||
rustc().input("panic.rs").run();
|
||||
rustc().input("app.rs").panic("abort").emit("obj").library_search_path(tmp_dir()).run();
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) panic.rs
|
||||
$(RUSTC) -C panic=abort --emit=obj app.rs -L $(TMPDIR)
|
Loading…
Reference in New Issue