]> git.lizzy.rs Git - rust.git/commitdiff
update docs
authorBastian Kauschke <bastian_kauschke@hotmail.de>
Sat, 19 Sep 2020 13:36:53 +0000 (15:36 +0200)
committerBastian Kauschke <bastian_kauschke@hotmail.de>
Sat, 19 Sep 2020 13:36:53 +0000 (15:36 +0200)
compiler/rustc_lint/src/context.rs

index f4f25752e3f5ad587d865635845f959842628efa..0265fc323b3b3d23f645507ca1859ab63c1745e3 100644 (file)
@@ -721,7 +721,8 @@ pub fn current_lint_root(&self) -> hir::HirId {
     /// 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
     ///