#[test]
fn target_edition() {
+ if !is_nightly() { // --edition is nightly-only
+ return;
+ }
let p = project()
.file(
"Cargo.toml",
assert_that(
p.cargo("build").arg("-v").masquerade_as_nightly_cargo(),
execs()
- .with_no_expected_status() // passes on nightly, fails on stable, b/c --edition is nightly-only
.with_stderr_contains("\
[COMPILING] foo v0.0.1 ([..])
[RUNNING] `rustc [..]--edition=2018 [..]
use git2;
use support::{cargo_process, sleep_ms, ChannelChanger};
-use support::{basic_manifest, execs, git, paths, project, registry, path2url};
+use support::{basic_manifest, execs, git, is_nightly, paths, project, registry, path2url};
use support::registry::Package;
use flate2::read::GzDecoder;
use support::hamcrest::{assert_that, contains, existing_file};
#[test]
fn test_edition() {
+ if !is_nightly() { // --edition is nightly-only
+ return;
+ }
let p = project()
.file(
"Cargo.toml",
assert_that(
p.cargo("build").arg("-v").masquerade_as_nightly_cargo(),
execs()
- .with_no_expected_status() // passes on nightly, fails on stable, b/c --edition is nightly-only
// --edition is still in flux and we're not passing -Zunstable-options
// from Cargo so it will probably error. Only partially match the output
// until stuff stabilizes
self
}
- pub fn with_no_expected_status(mut self) -> Execs {
- self.expect_exit_code = None;
- self
- }
-
/// Verify that stdout contains the given contiguous lines somewhere in
/// its output.
/// See `lines_match` for supported patterns.