Diagnose failure of crate-level #![expect()] in the project, then replace #![allow()] with #![expect()] #15321
Labels
A-Build-System
Related to build systems or continuous integration
C-Bug
An unexpected or incorrect behavior
C-Docs
An addition or correction to our documentation
S-Needs-Investigation
This issue requires detective work to figure out what's going wrong
Relevant PR:
Relevant issue:
The problem
We've been trying to replace
allow
withexpect
, which is often (but not always) used in the context of the lintmissing_docs
. CI failures occur when--all-targets
is specified. Our current CI does this:This results in linter failures such as:
It further seems that:
--all-targets
allows CI to pass, and#[expect()]
(non-crate-level) directives passFor 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
.The text was updated successfully, but these errors were encountered: