X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fintegration.rs;h=c64425fa01a42a36b8351e934ae81523d75b7129;hb=f5bbd1b5299da31532d00abb0502feb5b60f2606;hp=4f373e034bc204d650f367ea90b111887b67cad3;hpb=c1a138cdd923a82866c590c78c9a338844f1405d;p=rust.git diff --git a/tests/integration.rs b/tests/integration.rs index 4f373e034bc..c64425fa01a 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -1,4 +1,6 @@ #![cfg(feature = "integration")] +#![cfg_attr(feature = "deny-warnings", deny(warnings))] +#![warn(rust_2018_idioms, unused_lifetimes)] use std::env; use std::ffi::OsStr; @@ -64,11 +66,19 @@ fn integration_test() { } else if stderr.contains("query stack during panic") { panic!("query stack during panic in the output"); } else if stderr.contains("E0463") { + // Encountering E0463 (can't find crate for `x`) did _not_ cause the build to fail in the + // past. Even though it should have. That's why we explicitly panic here. + // See PR #3552 and issue #3523 for more background. panic!("error: E0463"); } else if stderr.contains("E0514") { panic!("incompatible crate versions"); } else if stderr.contains("failed to run `rustc` to learn about target-specific information") { panic!("couldn't find librustc_driver, consider setting `LD_LIBRARY_PATH`"); + } else { + assert!( + !stderr.contains("toolchain") || !stderr.contains("is not installed"), + "missing required toolchain" + ); } match output.status.code() {