Closed
Description
This issue is part of #54503. It is specifically focused on implementing the #[expect]
attribute for lints.
A working lint implementation can be found in #87835. The implementation still left the to-dos open for follow-up PRs:
- Handle
#[expect(unfulfilled_lint_expectations)]
-- Improveexpect
impl and handle#[expect(unfulfilled_lint_expectations)]
(RFC 2383) #94670 - Update unstable expectation ids in
HandlerInner::stashed_diagnostics
-- Improveexpect
impl and handle#[expect(unfulfilled_lint_expectations)]
(RFC 2383) #94670 - Make
#[expect()]
work forrustdoc::
lints Support tool lints with the#[expect]
attribute (RFC 2383) #95542 - ICE: no warnings or errors encountered even though
delayed_good_path_bugs
issued#![feature(lint_reasons)]
#95540 -
#[expect(..)]
not supported on function arguments #97650 - Handle
--force-warn
with expect (Support lint expectations for--force-warn
lints (RFC 2383) #97757) -
#[expect(...)]
doen't catch lints from differentcheck_*
function #97660 - Make
confusable_idents
work with#[expect]
currently, the lint is emitted and doesn't fulfill the expectation. - Update unstable documentation to reflect this change.
The open questions will be asked in the RFC Tracking issue 🙃