We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39f1259 commit 0eecbd4Copy full SHA for 0eecbd4
compiler/rustc_lint/src/context.rs
@@ -720,7 +720,8 @@ impl<'tcx> LateContext<'tcx> {
720
/// Anonymous scopes such as `extern` imports are matched with `kw::Invalid`;
721
/// inherent `impl` blocks are matched with the name of the type.
722
///
723
- /// If possible, consider using a `rustc_diagnostic_item` instead.
+ /// Instead of using this method, it is often preferable to instead use
724
+ /// `rustc_diagnostic_item` or a `lang_item`, which is less prone to errors.
725
726
/// # Examples
727
0 commit comments