We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10f4ce3 commit 6c6388cCopy full SHA for 6c6388c
compiler/rustc_lint_defs/src/builtin.rs
@@ -519,6 +519,11 @@ declare_lint! {
519
/// The `expect` attribute can be removed if this is intended behavior otherwise
520
/// it should be investigated why the expected lint is no longer issued.
521
///
522
+ /// In rare cases, the expectation might be emitted at a different location than
523
+ /// shown in the shown code snippet. In most cases, the `#[expect]` attribute
524
+ /// works when added to the outer scope. A few lints can only be expected
525
+ /// on a crate level.
526
+ ///
527
/// Part of RFC 2383. The progress is being tracked in [#54503]
528
529
/// [#54503]: https://github.com/rust-lang/rust/issues/54503
0 commit comments