File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ cargo_cache:
5
5
env :
6
6
# Build by default; don't just check
7
7
BUILD : build
8
+ CLIPPYFLAGS : -D warnings
8
9
RUSTFLAGS : -D warnings
9
10
RUSTDOCFLAGS : -D warnings
10
11
TOOL : cargo
@@ -18,7 +19,7 @@ build: &BUILD
18
19
- . $HOME/.cargo/env || true
19
20
- $TOOL +$TOOLCHAIN $BUILD $ZFLAGS --target $TARGET --all-targets
20
21
- $TOOL +$TOOLCHAIN doc $ZFLAGS --no-deps --target $TARGET
21
- - $TOOL +$TOOLCHAIN clippy $ZFLAGS --target $TARGET -- -D warnings
22
+ - $TOOL +$TOOLCHAIN clippy $ZFLAGS --target $TARGET -- $CLIPPYFLAGS
22
23
23
24
# Tests that do require executing the binaries
24
25
test : &TEST
@@ -239,6 +240,10 @@ task:
239
240
image : rustlang/rust:nightly
240
241
env :
241
242
BUILD : check
243
+ # Must allow here rather than in lib.rs because this lint doesn't exist
244
+ # prior to Rust 1.57.0
245
+ # https://github.com/rust-lang/rust-clippy/issues/7718
246
+ CLIPPYFLAGS : -D warnings -A clippy::if_then_panic
242
247
TOOLCHAIN : nightly
243
248
ZFLAGS : -Zbuild-std
244
249
matrix :
You can’t perform that action at this time.
0 commit comments