diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ece52af23..b3c89ed09 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: diff --git a/clippy-nightly.toml b/clippy-nightly.toml new file mode 100644 index 000000000..a0df6e2c4 --- /dev/null +++ b/clippy-nightly.toml @@ -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