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.
Rollup merge of rust-lang#125224 - Oneirical:sixth, r=jieyouxu
Migrate `run-make/issue-53964` to `rmake` Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). This is extremely similar to rust-lang#125146. Could it be interesting to merge the two in some way? This one seems to do the same thing as the rust-lang#125146, but with an added check that a useless lint is not shown.
- 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.