mirror of
https://github.com/rust-lang/cargo
synced 2024-10-13 19:22:33 +00:00
Auto merge of #5537 - eddyb:no-trans, r=matklad
Remove -Zno-trans test. Needed for https://github.com/rust-lang/rust/pull/50615 (where the flag is now `-Zno-codegen`) - which revealed that the test shouldn't even exist anymore, and was accidentally added back (https://github.com/rust-lang/rust/pull/50615#issuecomment-388968326).
This commit is contained in:
commit
cafc37f135
|
@ -3760,31 +3760,6 @@ fn custom_target_dir_line_parameter() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rustc_no_trans() {
|
||||
if !is_nightly() {
|
||||
return;
|
||||
}
|
||||
|
||||
let p = project("foo")
|
||||
.file(
|
||||
"Cargo.toml",
|
||||
r#"
|
||||
[package]
|
||||
name = "foo"
|
||||
version = "0.0.1"
|
||||
authors = []
|
||||
"#,
|
||||
)
|
||||
.file("src/main.rs", "fn main() {}")
|
||||
.build();
|
||||
|
||||
assert_that(
|
||||
p.cargo("rustc").arg("-v").arg("--").arg("-Zno-trans"),
|
||||
execs().with_status(0),
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn build_multiple_packages() {
|
||||
let p = project("foo")
|
||||
|
|
Loading…
Reference in a new issue