File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
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 :
Original file line number Diff line number Diff line change 12
12
#![ deny( missing_copy_implementations) ]
13
13
#![ deny( missing_debug_implementations) ]
14
14
#![ warn( missing_docs) ]
15
- // Because we run clippy on both nightly and 1.4.60
16
- #![ allow( clippy:: unknown_clippy_lints) ]
17
- #![ allow( clippy:: if_then_panic) ] // Too pedantic
18
15
19
16
// Re-exported external crates
20
17
pub use libc;
Original file line number Diff line number Diff line change 1
- // Because we run clippy on both nightly and 1.4.60
2
- #![ allow( clippy:: unknown_clippy_lints) ]
3
- #![ allow( clippy:: if_then_panic) ] // Too pedantic
4
-
5
1
#[ macro_use]
6
2
extern crate cfg_if;
7
3
#[ cfg_attr( not( target_os = "redox" ) , macro_use) ]
You can’t perform that action at this time.
0 commit comments