From 72225b496666c0158e4733a1053a868a27c52056 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 21 Sep 2019 12:15:48 -0400 Subject: [PATCH 1/4] Attempt to speed up clippy checks by reusing compilation --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 352642c6..d1bfc993 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ script: (cd "$p" && cargo fmt --all -- --check) || exit 1 fi done - - cargo clippy -- -D warnings + - env CARGO_TARGET_DIR=tests/target cargo clippy --target=x86_64-linux-kernel -- -D warnings after_failure: - dmesg From d293c3bfa8787dd41332cc72bc5e81297f8bd079 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 21 Sep 2019 12:21:45 -0400 Subject: [PATCH 2/4] Try adding this --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d1bfc993..b793f0bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ script: (cd "$p" && cargo fmt --all -- --check) || exit 1 fi done - - env CARGO_TARGET_DIR=tests/target cargo clippy --target=x86_64-linux-kernel -- -D warnings + - env CARGO_TARGET_DIR=tests/target cargo clippy -Z build-std=core,alloc --target=x86_64-linux-kernel -- -D warnings after_failure: - dmesg From e10bfe9aacd903a6b0a5f0949d58865ead011a60 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 22 Sep 2019 10:52:31 -0400 Subject: [PATCH 3/4] Try with clippy-preview --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b793f0bf..a1676d06 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ script: (cd "$p" && cargo fmt --all -- --check) || exit 1 fi done - - env CARGO_TARGET_DIR=tests/target cargo clippy -Z build-std=core,alloc --target=x86_64-linux-kernel -- -D warnings + - env CARGO_TARGET_DIR=tests/target cargo clippy-preview -Z build-std=core,alloc --target=x86_64-linux-kernel -- -D warnings after_failure: - dmesg From 784a2493fe5c57b41f83249e78ebae116a8997ad Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 22 Sep 2019 10:59:02 -0400 Subject: [PATCH 4/4] Try this too --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a1676d06..6cd4d5e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ script: (cd "$p" && cargo fmt --all -- --check) || exit 1 fi done - - env CARGO_TARGET_DIR=tests/target cargo clippy-preview -Z build-std=core,alloc --target=x86_64-linux-kernel -- -D warnings + - env CARGO_TARGET_DIR=tests/target cargo clippy-preview -Z unstable-options -Z build-std=core,alloc --target=x86_64-linux-kernel -- -D warnings after_failure: - dmesg