We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27edc43 commit f4dc629Copy full SHA for f4dc629
1 file changed
tests/testsuite/check.rs
@@ -1,4 +1,5 @@
1
use cargotest::install::exe;
2
+use cargotest::is_nightly;
3
use cargotest::support::paths::CargoPathExt;
4
use cargotest::support::registry::Package;
5
use cargotest::support::{execs, project};
@@ -830,7 +831,12 @@ fn check_artifacts() {
830
831
p.cargo("check").arg("--bin").arg("foo"),
832
execs().with_status(0),
833
);
- assert_that(&p.root().join("target/debug/libfoo.rmeta"), existing_file());
834
+ if is_nightly() {
835
+ // The nightly check can be removed once 1.27 is stable.
836
+ // Bins now generate `rmeta` files.
837
+ // See: https://github.com/rust-lang/rust/pull/49289
838
+ assert_that(&p.root().join("target/debug/libfoo.rmeta"), existing_file());
839
+ }
840
assert_that(
841
&p.root().join("target/debug/libfoo.rlib"),
842
is_not(existing_file()),
0 commit comments