We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eecbd4 commit bfa2030Copy full SHA for bfa2030
compiler/rustc_lint/src/context.rs
@@ -721,7 +721,8 @@ impl<'tcx> LateContext<'tcx> {
721
/// inherent `impl` blocks are matched with the name of the type.
722
///
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.
+ /// `rustc_diagnostic_item` or a `lang_item`. This is less prone to errors
725
+ /// as paths get invalidated if the target definition moves.
726
727
/// # Examples
728
0 commit comments