forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#125456 - fmease:rollup-n8608gc, r=fmease
Rollup of 7 pull requests Successful merges: - rust-lang#122382 (Detect unused structs which implement private traits) - rust-lang#124389 (Add a warning to proc_macro::Delimiter::None that rustc currently does not respect it.) - rust-lang#125224 (Migrate `run-make/issue-53964` to `rmake`) - rust-lang#125227 (Migrate `run-make/issue-30063` to `rmake`) - rust-lang#125336 (Add dedicated definition for intrinsics) - rust-lang#125401 (Migrate `run-make/rustdoc-scrape-examples-macros` to `rmake.rs`) - rust-lang#125454 (Improve the doc of query associated_item) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
23 changed files
with
322 additions
and
114 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
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
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
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
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
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
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
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.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,38 @@ | ||
// When rustc received 4 codegen-units, an output path and an emit flag all simultaneously, | ||
// this could cause an annoying recompilation issue, uselessly lengthening the build process. | ||
// A fix was delivered, which resets codegen-units to 1 when necessary, | ||
// but as it directly affected the way codegen-units are manipulated, | ||
// this test was created to check that this fix did not cause compilation failures. | ||
// See https://github.com/rust-lang/rust/issues/30063 | ||
|
||
//@ ignore-cross-compile | ||
|
||
use run_make_support::{rustc, tmp_dir}; | ||
use std::fs; | ||
|
||
fn compile(output_file: &str, emit: Option<&str>) { | ||
let mut rustc = rustc(); | ||
let rustc = rustc.codegen_units(4).output(tmp_dir().join(output_file)).input("foo.rs"); | ||
if let Some(emit) = emit { | ||
rustc.emit(emit); | ||
} | ||
rustc.run(); | ||
} | ||
|
||
fn main() { | ||
let flags = [ | ||
("foo-output", None), | ||
("asm-output", Some("asm")), | ||
("bc-output", Some("llvm-bc")), | ||
("ir-output", Some("llvm-ir")), | ||
("link-output", Some("link")), | ||
("obj-output", Some("obj")), | ||
("dep-output", Some("dep-info")), | ||
("multi-output", Some("asm,obj")), | ||
]; | ||
for (output_file, emit) in flags { | ||
fs::remove_file(output_file).unwrap_or_default(); | ||
compile(output_file, emit); | ||
fs::remove_file(output_file); | ||
} | ||
} |
Oops, something went wrong.