Skip to content

Use --cap-lints warnings to prevent unnecessary failures #651

@jyn514

Description

@jyn514

Some crates like to put deny (warnings) in their crate root. This is fine for developing locally, but can cause docs.rs builds to fail since new lints may have been added in nightly. docs.rs can avoid these unnecessary build failures by passing --cap-lints warn to rustdoc.

Example failure: https://docs.rs/crate/ring/0.16.11/builds/218514

See also: https://doc.rust-lang.org/rustc/lints/levels.html

I think the best way to do this would be to add --cap-lints to RUSTDOCFLAGS in execute_build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-build-failureCategory: This is a crate that failed to buildE-easyEffort: Should be easy to implement and would make a good first PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions