diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-03-05 14:44:31 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-03-05 14:44:31 +0100 |
| commit | a11e87e74d3ad5f6b9f628faba85739f067108a6 (patch) | |
| tree | e3d575b2b9c809e434f653d3b6003acf22c5b347 /compiler/rustc_passes/src | |
| parent | 55cec9079deb3aec02bc8158de94284a42a0ee79 (diff) | |
| download | rust-a11e87e74d3ad5f6b9f628faba85739f067108a6.tar.gz rust-a11e87e74d3ad5f6b9f628faba85739f067108a6.zip | |
Make invalid_doc_attribute lint plural
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/check_attr.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index a868802b4a6..ed971951b0f 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -18,7 +18,7 @@ use rustc_hir::{ }; use rustc_hir::{MethodKind, Target}; use rustc_session::lint::builtin::{ - CONFLICTING_REPR_HINTS, INVALID_DOC_ATTRIBUTE, UNUSED_ATTRIBUTES, + CONFLICTING_REPR_HINTS, INVALID_DOC_ATTRIBUTES, UNUSED_ATTRIBUTES, }; use rustc_session::parse::feature_err; use rustc_span::symbol::{sym, Symbol}; @@ -549,7 +549,7 @@ impl CheckAttrVisitor<'tcx> { } else if meta.has_name(sym::test) { if CRATE_HIR_ID != hir_id { self.tcx.struct_span_lint_hir( - INVALID_DOC_ATTRIBUTE, + INVALID_DOC_ATTRIBUTES, hir_id, meta.span(), |lint| { @@ -585,7 +585,7 @@ impl CheckAttrVisitor<'tcx> { .any(|m| i_meta.has_name(*m)) { self.tcx.struct_span_lint_hir( - INVALID_DOC_ATTRIBUTE, + INVALID_DOC_ATTRIBUTES, hir_id, i_meta.span, |lint| { |
