Skip to content

ci: Deny warnings - #347

Closed
mkroening wants to merge 1 commit into
rust-osdev:mainfrom
mkroening:cargo-warnings
Closed

ci: Deny warnings#347
mkroening wants to merge 1 commit into
rust-osdev:mainfrom
mkroening:cargo-warnings

Conversation

@mkroening

Copy link
Copy Markdown
Member

build.warnings is stable since Rust 1.97.0 and allows controlling rustc and clippy warnings (previously RUSTFLAGS=-Dwarnings) as well as rustdoc warnings (previously RUSTDOCFLAGS=-Dwarnings) and the new Cargo warnings.

Apparently CI has only failed on errors before, not on warnings.

@martin-hughes

Copy link
Copy Markdown
Contributor

One for @IsaacWoods - I'm happy to deny all warnings, but ought to check with the boss...

@mkroening

Copy link
Copy Markdown
Member Author

It seems like all warnings are gone for now.

Note that this will make CI fail whenever new lints are added to Rust or Clippy. I can completely understand if you prefer not dealing with that regularly. In that case, feel free to close this. :)

@IsaacWoods

Copy link
Copy Markdown
Member

Thanks for the PR @mkroening!

Note that this will make CI fail whenever new lints are added to Rust or Clippy.

I'm in two minds on this - I do think there's value in us trying to keep the crate warning free, including ensuring new PRs are warning-free before merging, now that we're in this position (with thanks to you!). However, I think failing CI on warnings (given the above) is likely to just have us sit with broken main and no artifacts for potentially prolonged periods.

If warnings creep back in without this, we could have another think, but for now I'll close this. Thanks :)

@IsaacWoods IsaacWoods closed this Sep 9, 2026
@mkroening
mkroening deleted the cargo-warnings branch September 10, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants