-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
A-Build-SystemRelated to build systems or continuous integrationRelated to build systems or continuous integrationC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorC-DocsAn addition or correction to our documentationAn addition or correction to our documentationS-Needs-InvestigationThis issue requires detective work to figure out what's going wrongThis issue requires detective work to figure out what's going wrong
Description
Relevant PR:
Relevant issue:
The problem
We've been trying to replace allow with expect, which is often (but not always) used in the context of the lint missing_docs. CI failures occur when --all-targets is specified. Our current CI does this:
cargo clippy --workspace --all-targets --all-features -- -DwarningsThis results in linter failures such as:
It further seems that:
- omitting
--all-targetsallows CI to pass, and #[expect()](non-crate-level) directives pass
For now, #![expect()] has been avoided in favour of #![allow()], but it'd be great to use #![expect()] at crate level if we can make it work smoothly using --all-targets.
Metadata
Metadata
Assignees
Labels
A-Build-SystemRelated to build systems or continuous integrationRelated to build systems or continuous integrationC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorC-DocsAn addition or correction to our documentationAn addition or correction to our documentationS-Needs-InvestigationThis issue requires detective work to figure out what's going wrongThis issue requires detective work to figure out what's going wrong
