Skip to content

Commit

Permalink
Always treat warnings as errors (#3210)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored Aug 19, 2024
1 parent f19edde commit 1e662ff
Show file tree
Hide file tree
Showing 24 changed files with 5 additions and 67 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[build]
rustflags = [
"-D", "warnings",

# "--cfg", "windows_debugger_visualizer",
# "--cfg", "windows_raw_dylib",
# "--cfg", "windows_slim_errors",
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
runs-on: windows-2022
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- master

env:
RUSTFLAGS: -Dwarnings
LLVM-MINGW-TOOLCHAIN-NAME: llvm-mingw-20220906-ucrt-ubuntu-18.04-x86_64

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/debugger_visualizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- master

env:
RUSTFLAGS: -Dwarnings --cfg windows_debugger_visualizer
RUSTFLAGS: --cfg windows_debugger_visualizer

jobs:
check:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
windows:
name: windows
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
name: tool_${{ matrix.tool }}
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
runs-on: windows-2022
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/msrv-windows-bindgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
strategy:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/msrv-windows-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
strategy:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/msrv-windows-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
strategy:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/msrv-windows-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
strategy:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/msrv-windows-result.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
strategy:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/msrv-windows-strings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
strategy:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/msrv-windows-sys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
strategy:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/msrv-windows-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
strategy:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/msrv-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
strategy:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/no-default-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
runs-on: windows-2022
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/no_std.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/raw_dylib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- master

env:
RUSTFLAGS: -Dwarnings --cfg windows_raw_dylib
RUSTFLAGS: --cfg windows_raw_dylib

jobs:
check:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/slim_errors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- master

env:
RUSTFLAGS: -Dwarnings --cfg windows_slim_errors
RUSTFLAGS: --cfg windows_slim_errors

jobs:
check:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches:
- master

env:
RUSTFLAGS: -Dwarnings

jobs:
check:
runs-on: windows-2022
Expand Down
9 changes: 0 additions & 9 deletions crates/tools/yml/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ on:
branches:
- master
env:
RUSTFLAGS: -Dwarnings
jobs:
check:
runs-on: windows-2022
Expand Down Expand Up @@ -114,9 +111,6 @@ on:
branches:
- master
env:
RUSTFLAGS: -Dwarnings
jobs:
check:
runs-on: windows-2022
Expand Down Expand Up @@ -166,9 +160,6 @@ on:
branches:
- master
env:
RUSTFLAGS: -Dwarnings
jobs:
check:
runs-on: windows-2022
Expand Down

0 comments on commit 1e662ff

Please sign in to comment.