Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always treat warnings as errors #3210

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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