diff --git a/.cargo/config.toml b/.cargo/config.toml index 081f460391..4691abf309 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,5 +1,7 @@ [build] rustflags = [ + "-D", "warnings", + # "--cfg", "windows_debugger_visualizer", # "--cfg", "windows_raw_dylib", # "--cfg", "windows_slim_errors", diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 870c2323ad..567d430fc5 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: runs-on: windows-2022 diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml index 7c44bcdb99..1ca6db2a95 100644 --- a/.github/workflows/cross.yml +++ b/.github/workflows/cross.yml @@ -9,7 +9,6 @@ on: - master env: - RUSTFLAGS: -Dwarnings LLVM-MINGW-TOOLCHAIN-NAME: llvm-mingw-20220906-ucrt-ubuntu-18.04-x86_64 jobs: diff --git a/.github/workflows/debugger_visualizer.yml b/.github/workflows/debugger_visualizer.yml index 856eeeaf6b..8b150fa495 100644 --- a/.github/workflows/debugger_visualizer.yml +++ b/.github/workflows/debugger_visualizer.yml @@ -9,7 +9,7 @@ on: - master env: - RUSTFLAGS: -Dwarnings --cfg windows_debugger_visualizer + RUSTFLAGS: --cfg windows_debugger_visualizer jobs: check: diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index c57864f66c..ffb1b07c7d 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: windows: name: windows diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index f694cade84..daadca2100 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: runs-on: ubuntu-latest diff --git a/.github/workflows/gen.yml b/.github/workflows/gen.yml index 3ac9f550d4..09ef166ea3 100644 --- a/.github/workflows/gen.yml +++ b/.github/workflows/gen.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: name: tool_${{ matrix.tool }} diff --git a/.github/workflows/lib.yml b/.github/workflows/lib.yml index 15367212c9..eaf0d0e9e0 100644 --- a/.github/workflows/lib.yml +++ b/.github/workflows/lib.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: runs-on: windows-2022 diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 9b520b21f6..6245ea0371 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: runs-on: ubuntu-latest diff --git a/.github/workflows/msrv-windows-bindgen.yml b/.github/workflows/msrv-windows-bindgen.yml index 4ed65d1c39..4b22be6f32 100644 --- a/.github/workflows/msrv-windows-bindgen.yml +++ b/.github/workflows/msrv-windows-bindgen.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: strategy: diff --git a/.github/workflows/msrv-windows-core.yml b/.github/workflows/msrv-windows-core.yml index b124af5e4a..df67ce14d3 100644 --- a/.github/workflows/msrv-windows-core.yml +++ b/.github/workflows/msrv-windows-core.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: strategy: diff --git a/.github/workflows/msrv-windows-metadata.yml b/.github/workflows/msrv-windows-metadata.yml index 43950a68bf..89eea8da7e 100644 --- a/.github/workflows/msrv-windows-metadata.yml +++ b/.github/workflows/msrv-windows-metadata.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: strategy: diff --git a/.github/workflows/msrv-windows-registry.yml b/.github/workflows/msrv-windows-registry.yml index 6ada003a60..d712cc35c6 100644 --- a/.github/workflows/msrv-windows-registry.yml +++ b/.github/workflows/msrv-windows-registry.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: strategy: diff --git a/.github/workflows/msrv-windows-result.yml b/.github/workflows/msrv-windows-result.yml index baef56a15a..29ac06696c 100644 --- a/.github/workflows/msrv-windows-result.yml +++ b/.github/workflows/msrv-windows-result.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: strategy: diff --git a/.github/workflows/msrv-windows-strings.yml b/.github/workflows/msrv-windows-strings.yml index 9378fbc879..0489f14808 100644 --- a/.github/workflows/msrv-windows-strings.yml +++ b/.github/workflows/msrv-windows-strings.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: strategy: diff --git a/.github/workflows/msrv-windows-sys.yml b/.github/workflows/msrv-windows-sys.yml index 079b07d272..dc20b85c87 100644 --- a/.github/workflows/msrv-windows-sys.yml +++ b/.github/workflows/msrv-windows-sys.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: strategy: diff --git a/.github/workflows/msrv-windows-version.yml b/.github/workflows/msrv-windows-version.yml index e643a78c8f..e44725c148 100644 --- a/.github/workflows/msrv-windows-version.yml +++ b/.github/workflows/msrv-windows-version.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: strategy: diff --git a/.github/workflows/msrv-windows.yml b/.github/workflows/msrv-windows.yml index 90a9b34c51..878df7ce99 100644 --- a/.github/workflows/msrv-windows.yml +++ b/.github/workflows/msrv-windows.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: strategy: diff --git a/.github/workflows/no-default-features.yml b/.github/workflows/no-default-features.yml index 36318f1d59..558582dc73 100644 --- a/.github/workflows/no-default-features.yml +++ b/.github/workflows/no-default-features.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: runs-on: windows-2022 diff --git a/.github/workflows/no_std.yml b/.github/workflows/no_std.yml index 9ada778bf7..09e3cfae26 100644 --- a/.github/workflows/no_std.yml +++ b/.github/workflows/no_std.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: strategy: diff --git a/.github/workflows/raw_dylib.yml b/.github/workflows/raw_dylib.yml index 7ff54f8ad9..6de50c8859 100644 --- a/.github/workflows/raw_dylib.yml +++ b/.github/workflows/raw_dylib.yml @@ -9,7 +9,7 @@ on: - master env: - RUSTFLAGS: -Dwarnings --cfg windows_raw_dylib + RUSTFLAGS: --cfg windows_raw_dylib jobs: check: diff --git a/.github/workflows/slim_errors.yml b/.github/workflows/slim_errors.yml index 80b27147c8..141ca757fe 100644 --- a/.github/workflows/slim_errors.yml +++ b/.github/workflows/slim_errors.yml @@ -9,7 +9,7 @@ on: - master env: - RUSTFLAGS: -Dwarnings --cfg windows_slim_errors + RUSTFLAGS: --cfg windows_slim_errors jobs: check: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b9b4dc918e..401c0af23a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,9 +8,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: runs-on: windows-2022 diff --git a/crates/tools/yml/src/main.rs b/crates/tools/yml/src/main.rs index c60e79865c..912477c3ec 100644 --- a/crates/tools/yml/src/main.rs +++ b/crates/tools/yml/src/main.rs @@ -17,9 +17,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: runs-on: windows-2022 @@ -114,9 +111,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: runs-on: windows-2022 @@ -166,9 +160,6 @@ on: branches: - master -env: - RUSTFLAGS: -Dwarnings - jobs: check: runs-on: windows-2022