Skip to content

Commit 65e690a

Browse files
committed
Auto merge of #5405 - dwijnand:contributing-lint-overrides, r=matklad
Detail how to override lint warnings when compiling tests alternative to #5403
2 parents cbedd29 + 63b72f8 commit 65e690a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ARCHITECTURE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ assert_that(
106106
Alternatively to build and run a custom version of cargo simply run `cargo build`
107107
and execute `target/debug/cargo`.
108108

109+
Because the test suite has `#![deny(warnings)]` at times you might find it
110+
convenient to override this with `RUSTFLAGS`, for example
111+
`RUSTFLAGS="--cap-lints warn" cargo build`.
112+
109113
## Logging
110114

111115
Cargo uses [`env_logger`](https://docs.rs/env_logger/*/env_logger/), so you can set

0 commit comments

Comments
 (0)