]> git.lizzy.rs Git - rust.git/commitdiff
wording
authorBastian Kauschke <bastian_kauschke@hotmail.de>
Sat, 19 Sep 2020 09:32:55 +0000 (11:32 +0200)
committerBastian Kauschke <bastian_kauschke@hotmail.de>
Sat, 19 Sep 2020 09:33:11 +0000 (11:33 +0200)
compiler/rustc_lint/src/context.rs

index ec275dda1f4b74c4d67c3066da119feb35861b24..f4f25752e3f5ad587d865635845f959842628efa 100644 (file)
@@ -720,7 +720,8 @@ pub fn current_lint_root(&self) -> hir::HirId {
     /// Anonymous scopes such as `extern` imports are matched with `kw::Invalid`;
     /// inherent `impl` blocks are matched with the name of the type.
     ///
-    /// If possible, consider using a `rustc_diagnostic_item` instead.
+    /// 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.
     ///
     /// # Examples
     ///