forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
tests/run-make/external-crate-panic-handle-no-lint/rmake.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
} |
This file was deleted.
Oops, something went wrong.