Skip to content

Commit 0eecbd4

Browse files
committed
wording
1 parent 39f1259 commit 0eecbd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_lint/src/context.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,8 @@ impl<'tcx> LateContext<'tcx> {
720720
/// Anonymous scopes such as `extern` imports are matched with `kw::Invalid`;
721721
/// inherent `impl` blocks are matched with the name of the type.
722722
///
723-
/// If possible, consider using a `rustc_diagnostic_item` instead.
723+
/// 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.
724725
///
725726
/// # Examples
726727
///

0 commit comments

Comments
 (0)