diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-09-19 11:32:55 +0200 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-09-19 11:33:11 +0200 |
| commit | 0eecbd4f9731d3dc574691344997b640dd023315 (patch) | |
| tree | 3dd28fa0fef23fd7652aae0ef1ed95a6614b7bd2 | |
| parent | 39f125918d05176d711ef9da3c0bbd4c861bb14e (diff) | |
| download | rust-0eecbd4f9731d3dc574691344997b640dd023315.tar.gz rust-0eecbd4f9731d3dc574691344997b640dd023315.zip | |
wording
| -rw-r--r-- | compiler/rustc_lint/src/context.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs index ec275dda1f4..f4f25752e3f 100644 --- a/compiler/rustc_lint/src/context.rs +++ b/compiler/rustc_lint/src/context.rs @@ -720,7 +720,8 @@ impl<'tcx> LateContext<'tcx> { /// 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 /// |
