Merge branch 'clippy' into 'main'
clippy: Allow dbg in tests *again* See merge request tpo/core/arti!575
This commit is contained in:
commit
e8999d0b57
|
@ -97,6 +97,7 @@ rust-nightly:
|
||||||
# The --cfg allows us to write #![cfg_attr(ci_arti_nightly, allow(clippy::needless_borrow))]
|
# 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
|
# 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.)
|
# 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
|
- 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
|
- RUSTDOCFLAGS="-Dwarnings" cargo doc --all-features --document-private-items --no-deps
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue