about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBastian Kauschke <bastian_kauschke@hotmail.de>2020-09-19 15:36:53 +0200
committerBastian Kauschke <bastian_kauschke@hotmail.de>2020-09-19 15:36:53 +0200
commitbfa2030ccbbabc4944b719c9194e190e1726fc8c (patch)
treec52c21b0861bd3324b129eaf2ee7e482030bac33
parent0eecbd4f9731d3dc574691344997b640dd023315 (diff)
downloadrust-bfa2030ccbbabc4944b719c9194e190e1726fc8c.tar.gz
rust-bfa2030ccbbabc4944b719c9194e190e1726fc8c.zip
update docs
-rw-r--r--compiler/rustc_lint/src/context.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs
index f4f25752e3f..0265fc323b3 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
     ///