File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -77,13 +77,13 @@ matrix:
77
77
if : repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
78
78
- env : INTEGRATION=bluss/rust-itertools
79
79
if : repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
80
- - env : INTEGRATION=serde-rs/serde
80
+ - env : INTEGRATION=serde-rs/serde MANIFEST_PATH=serde/Cargo.toml
81
81
if : repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
82
- - env : INTEGRATION=rust-lang-nursery/stdsimd
82
+ - env : INTEGRATION=rust-lang-nursery/stdsimd MANIFEST_PATH=crates/core_arch/Cargo.toml
83
83
if : repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
84
84
- env : INTEGRATION=rust-random/rand
85
85
if : repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
86
- - env : INTEGRATION=rust-lang-nursery/futures-rs
86
+ - env : INTEGRATION=rust-lang-nursery/futures-rs MANIFEST_PATH=futures/Cargo.toml
87
87
if : repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
88
88
- env : INTEGRATION=Marwes/combine
89
89
if : repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
Original file line number Diff line number Diff line change @@ -13,20 +13,25 @@ echo "Running integration test for crate ${INTEGRATION}"
13
13
git clone --depth=1 " https://github.com/${INTEGRATION} .git" checkout || exit 1
14
14
cd checkout || exit 1
15
15
16
+ MANIFEST_OPTS=()
17
+ if [[ -n " $MANIFEST_PATH " ]]; then
18
+ MANIFEST_OPTS=(" --manifest-path=$MANIFEST_PATH " )
19
+ fi
20
+
16
21
# run clippy on a project, try to be verbose and trigger as many warnings as possible for greater coverage
17
22
RUST_BACKTRACE=full \
18
23
cargo clippy \
19
24
--all-targets \
20
25
--all-features \
26
+ " ${MANIFEST_OPTS[@]} " \
21
27
-- \
22
28
--cap-lints warn \
23
29
-W clippy::pedantic \
24
30
-W clippy::nursery \
25
31
> clippy_output 2>&1
26
- ERRNO=$?
27
32
28
33
cat clippy_output
29
34
30
- if grep -q " internal compiler error\|query stack during panic\|E0463" clippy_output || [[ $ERRNO -ne 0 ]] ; then
35
+ if grep -q " internal compiler error\|query stack during panic\|E0463\|--all-features is not allowed " clippy_output ; then
31
36
exit 1
32
37
fi
You can’t perform that action at this time.
0 commit comments