From 2c25b8f398947d707fab519a83734ff51439cb34 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Thu, 6 Jan 2022 16:57:40 +0100 Subject: ci: Set flags in .cargo/config.toml, not in .gitlab-ci.yml. - Setting complication flags in .gitlab-ci.yml means that they will only be used by the CI. - Instead, set flags in .cargo/config.toml so that compiling locally will use the same set of lints. --- .gitlab-ci.yml | 13 ------------- 1 file changed, 13 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 84a2b642..a2937a6f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,7 +31,6 @@ build-bookworm: variables: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo - RUSTFLAGS: -D warnings -A unused-parens after_script: [] build-bookworm:arm64: @@ -54,7 +53,6 @@ build-bookworm:arm64: variables: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo - RUSTFLAGS: -D warnings -A unused-parens after_script: [] bookworm: @@ -69,7 +67,6 @@ bookworm: variables: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo - RUSTFLAGS: -D warnings -A unused-parens after_script: [] bookworm-crypto-rust: @@ -85,7 +82,6 @@ bookworm-crypto-rust: variables: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo - RUSTFLAGS: -D warnings -A unused-parens after_script: [] bookworm:arm64: @@ -113,7 +109,6 @@ bookworm:arm64: variables: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo - RUSTFLAGS: -D warnings -A unused-parens after_script: [] benchmarks: @@ -142,7 +137,6 @@ benchmarks: paths: ['benchmark.txt'] variables: CARGO_TARGET_DIR: $CI_PROJECT_DIR/../target.benchmarks - RUSTFLAGS: -D warnings -A unused-parens all_commits: # Test each commit up to main, to facilitate bisecting. @@ -157,7 +151,6 @@ all_commits: variables: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo - RUSTFLAGS: -D warnings -A unused-parens GIT_STRATEGY: clone all_commits:arm64: @@ -185,7 +178,6 @@ all_commits:arm64: variables: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo - RUSTFLAGS: -D warnings -A unused-parens GIT_STRATEGY: clone codespell: @@ -217,7 +209,6 @@ doc: variables: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo - RUSTFLAGS: -D warnings -A unused-parens after_script: [] rust-stable: @@ -237,7 +228,6 @@ rust-stable: variables: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo - RUSTFLAGS: -D warnings -A unused-parens clippy: tags: @@ -259,7 +249,6 @@ clippy: variables: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo - RUSTFLAGS: -D warnings -A unused-parens rust-stable:arm64: tags: @@ -283,7 +272,6 @@ rust-stable:arm64: variables: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo - RUSTFLAGS: -D warnings -A unused-parens windows-gnu: tags: @@ -375,7 +363,6 @@ variables: CARGO_FLAGS: --color always CARGO_INCREMENTAL: 0 RUST_BACKTRACE: full - RUSTFLAGS: -D warnings CFLAGS: -Werror MAKE_TOP: make --file=.Makefile QUICKCHECK_GENERATOR_SIZE: 500 # https://github.com/BurntSushi/quickcheck/pull/240 -- cgit v1.2.3