Merge branch 'clippy' into 'main'

clippy: Allow dbg in tests *again*

See merge request tpo/core/arti!575
This commit is contained in:
Nick Mathewson 2022-06-09 15:17:09 +00:00
commit e8999d0b57
2 changed files with 7 additions and 0 deletions

View File

@ -97,6 +97,7 @@ rust-nightly:
# The --cfg allows us to write #![cfg_attr(ci_arti_nightly, allow(clippy::needless_borrow))]
# and similar, for when nightly clippy has false positives. (There is no builtin
# cfg flag for nightly, and a cargo "feature" would be bad with --all-features.)
- (echo; cat clippy-nightly.toml) >>clippy.toml
- cargo clippy --all-features --tests -- --cfg ci_arti_nightly -D clippy::dbg_macro -D clippy::print_stdout -D clippy::print_stderr
- RUSTDOCFLAGS="-Dwarnings" cargo doc --all-features --document-private-items --no-deps
tags:

6
clippy-nightly.toml Normal file
View File

@ -0,0 +1,6 @@
# Config options appended to clippy.toml when we run Nightly clippy
#
# We must edit the tree, this way, sadly:
# https://github.com/rust-lang/rust-clippy/issues/8973
allow-dbg-in-tests = true