use cargotest::install::exe;
+use cargotest::is_nightly;
use cargotest::support::paths::CargoPathExt;
use cargotest::support::registry::Package;
use cargotest::support::{execs, project};
p.cargo("check").arg("--bin").arg("foo"),
execs().with_status(0),
);
- assert_that(&p.root().join("target/debug/libfoo.rmeta"), existing_file());
+ if is_nightly() {
+ // The nightly check can be removed once 1.27 is stable.
+ // Bins now generate `rmeta` files.
+ // See: https://github.com/rust-lang/rust/pull/49289
+ assert_that(&p.root().join("target/debug/libfoo.rmeta"), existing_file());
+ }
assert_that(
&p.root().join("target/debug/libfoo.rlib"),
is_not(existing_file()),