reference
reference copied to clipboard
Document new `#[expect]` attribute and `reasons` parameter (RFC 2383)
This PR is created in preparation to stabilize the lint_reasons feature. I hope this covers everything :upside_down_face:
Tracking issue: https://github.com/rust-lang/rust/issues/54503
The CI will fail, until the #[feature(lint_reasons)] has been stabilized in rustc. Everything else should be ready :upside_down_face:
With https://github.com/rust-lang/rust/issues/115980#issuecomment-1926001471 the semantics of the #[expect] attribute have been decided. I've reworked some parts of the documentation, to make the semantics clearer according to the decision.
The CI is currently failing, since the feature is not yet stabilized in rustc. I'll work on that part next.