about summary refs log tree commit diff
path: root/src/librustc_lint
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-07-31 02:20:47 +0000
committerbors <bors@rust-lang.org>2020-07-31 02:20:47 +0000
commitffa80f01d800528b2cfbe5b5a8a218d20c7d8e95 (patch)
tree9591e793ce50b32689ab69a3b868ee84fb5b090d /src/librustc_lint
parentc058a8b8dc5dea0ed9b33e14da9e317e2749fcd7 (diff)
parentc17eb566c20bb4c98a1e74f7f0461483ff175310 (diff)
downloadrust-ffa80f01d800528b2cfbe5b5a8a218d20c7d8e95.tar.gz
rust-ffa80f01d800528b2cfbe5b5a8a218d20c7d8e95.zip
Auto merge of #74926 - Manishearth:rename-lint, r=jyn514
Rename intra_doc_link_resolution_failure

It should be plural to follow the conventions in https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#lints
Diffstat (limited to 'src/librustc_lint')
-rw-r--r--src/librustc_lint/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/librustc_lint/lib.rs b/src/librustc_lint/lib.rs
index ab30d545edf..15a9affbff7 100644
--- a/src/librustc_lint/lib.rs
+++ b/src/librustc_lint/lib.rs
@@ -61,8 +61,8 @@ use rustc_hir::def_id::LocalDefId;
 use rustc_middle::ty::query::Providers;
 use rustc_middle::ty::TyCtxt;
 use rustc_session::lint::builtin::{
-    BARE_TRAIT_OBJECTS, ELIDED_LIFETIMES_IN_PATHS, EXPLICIT_OUTLIVES_REQUIREMENTS,
-    INTRA_DOC_LINK_RESOLUTION_FAILURE, INVALID_CODEBLOCK_ATTRIBUTES, MISSING_DOC_CODE_EXAMPLES,
+    BARE_TRAIT_OBJECTS, BROKEN_INTRA_DOC_LINKS, ELIDED_LIFETIMES_IN_PATHS,
+    EXPLICIT_OUTLIVES_REQUIREMENTS, INVALID_CODEBLOCK_ATTRIBUTES, MISSING_DOC_CODE_EXAMPLES,
     PRIVATE_DOC_TESTS,
 };
 use rustc_span::symbol::{Ident, Symbol};
@@ -303,7 +303,7 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
 
     add_lint_group!(
         "rustdoc",
-        INTRA_DOC_LINK_RESOLUTION_FAILURE,
+        BROKEN_INTRA_DOC_LINKS,
         INVALID_CODEBLOCK_ATTRIBUTES,
         MISSING_DOC_CODE_EXAMPLES,
         PRIVATE_DOC_TESTS
@@ -318,6 +318,7 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
     store.register_renamed("async_idents", "keyword_idents");
     store.register_renamed("exceeding_bitshifts", "arithmetic_overflow");
     store.register_renamed("redundant_semicolon", "redundant_semicolons");
+    store.register_renamed("intra_doc_link_resolution_failure", "broken_intra_doc_links");
     store.register_removed("unknown_features", "replaced by an error");
     store.register_removed("unsigned_negation", "replaced by negate_unsigned feature gate");
     store.register_removed("negate_unsigned", "cast a signed value instead");