You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #9698 - ehuss:enable-future-incompat, r=alexcrichton
Re-enable future-incompatible tests.
This re-enables the future-incompatible tests that were disabled in #9638.
rustc now has a `-Zfuture-incompat-test` flag we can use to test the future-incompatible reporting system. It causes rustc to treat every lint as future-incompatible, so we can just pick some arbitrary lint that should be stable over time.
.with_stderr_contains("warning: the following packages contain code that will be rejected by a future version of Rust: first-dep v0.0.1, second-dep v0.0.2")
152
172
// Check that we don't have the 'triggers' message shown at the bottom of this loop
.with_stderr_contains("warning: the following packages contain code that will be rejected by a future version of Rust: first-dep v0.0.1, second-dep v0.0.2")
159
180
.with_stderr_contains("The package `first-dep v0.0.1` currently triggers the following future incompatibility lints:")
160
181
.with_stderr_contains("The package `second-dep v0.0.2` currently triggers the following future incompatibility lints:")
@@ -164,6 +185,7 @@ fn test_multi_crate() {
164
185
// Test that passing the correct id via '--id' doesn't generate a warning message
165
186
let output = p
166
187
.cargo("build -Z future-incompat-report")
188
+
.env("RUSTFLAGS","-Zfuture-incompat-test")
167
189
.masquerade_as_nightly_cargo()
168
190
.exec_with_output()
169
191
.unwrap();
@@ -223,15 +245,16 @@ fn test_multi_crate() {
223
245
}
224
246
225
247
#[cargo_test]
226
-
#[ignore]// Waiting on https://github.com/rust-lang/rust/pull/86478
0 commit comments