From bfa2030ccbbabc4944b719c9194e190e1726fc8c Mon Sep 17 00:00:00 2001 From: Bastian Kauschke Date: Sat, 19 Sep 2020 15:36:53 +0200 Subject: [PATCH] update docs --- compiler/rustc_lint/src/context.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs index f4f25752e3f5a..0265fc323b3b3 100644 --- a/compiler/rustc_lint/src/context.rs +++ b/compiler/rustc_lint/src/context.rs @@ -721,7 +721,8 @@ impl<'tcx> LateContext<'tcx> { /// inherent `impl` blocks are matched with the name of the type. /// /// Instead of using this method, it is often preferable to instead use - /// `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 + /// as paths get invalidated if the target definition moves. /// /// # Examples ///