Skip to content

Commit bfa2030

Browse files
committed
update docs
1 parent 0eecbd4 commit bfa2030

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
@@ -721,7 +721,8 @@ impl<'tcx> LateContext<'tcx> {
721721
/// inherent `impl` blocks are matched with the name of the type.
722722
///
723723
/// 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.
724+
/// `rustc_diagnostic_item` or a `lang_item`. This is less prone to errors
725+
/// as paths get invalidated if the target definition moves.
725726
///
726727
/// # Examples
727728
///

0 commit comments

Comments
 (0)