Skip to content

Commit

Permalink
Auto merge of #5404 - matklad:remove-useless-nightly, r=matklad
Browse files Browse the repository at this point in the history
Remove some `is_nightly` checks from tests
  • Loading branch information
bors committed Apr 22, 2018
2 parents 8f3dd18 + 14067b9 commit cbedd29
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 78 deletions.
37 changes: 0 additions & 37 deletions tests/testsuite/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ fn cargo_fail_with_no_stderr() {
/// `rustc` getting `-Zincremental` passed to it.
#[test]
fn cargo_compile_incremental() {
if !is_nightly() {
return;
}

let p = project("foo")
.file("Cargo.toml", &basic_bin_manifest("foo"))
.file("src/foo.rs", &main_file(r#""i am foo""#, &[]))
Expand All @@ -77,10 +73,6 @@ fn cargo_compile_incremental() {

#[test]
fn incremental_profile() {
if !is_nightly() {
return;
}

let p = project("foo")
.file(
"Cargo.toml",
Expand Down Expand Up @@ -137,10 +129,6 @@ fn incremental_profile() {

#[test]
fn incremental_config() {
if !is_nightly() {
return;
}

let p = project("foo")
.file(
"Cargo.toml",
Expand Down Expand Up @@ -3682,31 +3670,6 @@ fn custom_target_dir() {
);
}

#[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")
Expand Down
9 changes: 0 additions & 9 deletions tests/testsuite/check.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use cargotest::install::exe;
use cargotest::is_nightly;
use cargotest::support::paths::CargoPathExt;
use cargotest::support::registry::Package;
use cargotest::support::{execs, project};
Expand Down Expand Up @@ -107,9 +106,6 @@ fn check_fail() {

#[test]
fn custom_derive() {
if !is_nightly() {
return;
}
let foo = project("foo")
.file(
"Cargo.toml",
Expand All @@ -126,8 +122,6 @@ fn custom_derive() {
.file(
"src/main.rs",
r#"
#![feature(proc_macro)]
#[macro_use]
extern crate bar;
Expand Down Expand Up @@ -160,9 +154,6 @@ fn main() {
.file(
"src/lib.rs",
r#"
#![feature(proc_macro, proc_macro_lib)]
#![crate_type = "proc-macro"]
extern crate proc_macro;
use proc_macro::TokenStream;
Expand Down
4 changes: 0 additions & 4 deletions tests/testsuite/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::fs::{self, File};
use std::io::prelude::*;

use cargo::util::process;
use cargotest;
use cargotest::sleep_ms;
use cargotest::support::paths::{self, CargoPathExt};
use cargotest::support::{execs, main_file, project};
Expand Down Expand Up @@ -1284,9 +1283,6 @@ fn workspace_produces_rlib() {

#[test]
fn thin_lto_works() {
if !cargotest::is_nightly() {
return;
}
let p = project("foo")
.file(
"Cargo.toml",
Expand Down
28 changes: 0 additions & 28 deletions tests/testsuite/proc_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ use hamcrest::assert_that;

#[test]
fn probe_cfg_before_crate_type_discovery() {
if !is_nightly() {
return;
}

let client = project("client")
.file(
"Cargo.toml",
Expand All @@ -24,8 +20,6 @@ fn probe_cfg_before_crate_type_discovery() {
.file(
"src/main.rs",
r#"
#![feature(proc_macro)]
#[macro_use]
extern crate noop;
Expand All @@ -52,8 +46,6 @@ fn probe_cfg_before_crate_type_discovery() {
.file(
"src/lib.rs",
r#"
#![feature(proc_macro, proc_macro_lib)]
extern crate proc_macro;
use proc_macro::TokenStream;
Expand All @@ -70,10 +62,6 @@ fn probe_cfg_before_crate_type_discovery() {

#[test]
fn noop() {
if !is_nightly() {
return;
}

let client = project("client")
.file(
"Cargo.toml",
Expand All @@ -90,8 +78,6 @@ fn noop() {
.file(
"src/main.rs",
r#"
#![feature(proc_macro)]
#[macro_use]
extern crate noop;
Expand All @@ -118,8 +104,6 @@ fn noop() {
.file(
"src/lib.rs",
r#"
#![feature(proc_macro, proc_macro_lib)]
extern crate proc_macro;
use proc_macro::TokenStream;
Expand All @@ -137,10 +121,6 @@ fn noop() {

#[test]
fn impl_and_derive() {
if !is_nightly() {
return;
}

let client = project("client")
.file(
"Cargo.toml",
Expand All @@ -157,8 +137,6 @@ fn impl_and_derive() {
.file(
"src/main.rs",
r#"
#![feature(proc_macro)]
#[macro_use]
extern crate transmogrify;
Expand Down Expand Up @@ -193,8 +171,6 @@ fn impl_and_derive() {
.file(
"src/lib.rs",
r#"
#![feature(proc_macro, proc_macro_lib)]
extern crate proc_macro;
use proc_macro::TokenStream;
Expand Down Expand Up @@ -278,9 +254,6 @@ fn plugin_and_proc_macro() {

#[test]
fn proc_macro_doctest() {
if !is_nightly() {
return;
}
let foo = project("foo")
.file(
"Cargo.toml",
Expand All @@ -296,7 +269,6 @@ fn proc_macro_doctest() {
.file(
"src/lib.rs",
r#"
#![feature(proc_macro, proc_macro_lib)]
#![crate_type = "proc-macro"]
extern crate proc_macro;
Expand Down

0 comments on commit cbedd29

Please sign in to comment.