Document, that some lint have to be expected on the crate level (RFC 2383)

Examples: NON_ASCII_IDENTS, UNCOMMON_CODEPOINTS, CONFUSABLE_IDENTS, MIXED_SCRIPT_CONFUSABLES
This commit is contained in:
xFrednet 2022-06-16 12:52:35 +02:00
parent 10f4ce324b
commit 6c6388cd6c
No known key found for this signature in database
GPG Key ID: F5C59D0E669E5302

View File

@ -519,6 +519,11 @@
/// The `expect` attribute can be removed if this is intended behavior otherwise
/// it should be investigated why the expected lint is no longer issued.
///
/// In rare cases, the expectation might be emitted at a different location than
/// shown in the shown code snippet. In most cases, the `#[expect]` attribute
/// works when added to the outer scope. A few lints can only be expected
/// on a crate level.
///
/// Part of RFC 2383. The progress is being tracked in [#54503]
///
/// [#54503]: https://github.com/rust-lang/rust/issues/54503