From: Dale Wijnand Date: Sun, 22 Apr 2018 16:35:47 +0000 (+0100) Subject: Detail how to override lint warnings when compiling tests X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~1^2~49^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=63b72f8dd3c63e6ffcee2fe1693c4c36b3692bfb;p=cargo.git Detail how to override lint warnings when compiling tests --- diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index b749218c3..68d06ff66 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -106,6 +106,10 @@ assert_that( Alternatively to build and run a custom version of cargo simply run `cargo build` and execute `target/debug/cargo`. +Because the test suite has `#![deny(warnings)]` at times you might find it +convenient to override this with `RUSTFLAGS`, for example +`RUSTFLAGS="--cap-lints warn" cargo build`. + ## Logging Cargo uses [`env_logger`](https://docs.rs/env_logger/*/env_logger/), so you can set