Skip to content

Commit e25a67f

Browse files
committed
Rename the lint again
1 parent 8fe438e commit e25a67f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/librustc_lint/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ use rustc_hir::def_id::LocalDefId;
6161
use rustc_middle::ty::query::Providers;
6262
use rustc_middle::ty::TyCtxt;
6363
use rustc_session::lint::builtin::{
64-
BARE_TRAIT_OBJECTS, ELIDED_LIFETIMES_IN_PATHS, EXPLICIT_OUTLIVES_REQUIREMENTS,
65-
INTRA_DOC_RESOLUTION_FAILURES, INVALID_CODEBLOCK_ATTRIBUTES, MISSING_DOC_CODE_EXAMPLES,
64+
BARE_TRAIT_OBJECTS, BROKEN_INTRA_DOC_LINKS, ELIDED_LIFETIMES_IN_PATHS,
65+
EXPLICIT_OUTLIVES_REQUIREMENTS, INVALID_CODEBLOCK_ATTRIBUTES, MISSING_DOC_CODE_EXAMPLES,
6666
PRIVATE_DOC_TESTS,
6767
};
6868
use rustc_span::symbol::{Ident, Symbol};
@@ -303,7 +303,7 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
303303

304304
add_lint_group!(
305305
"rustdoc",
306-
INTRA_DOC_RESOLUTION_FAILURES,
306+
BROKEN_INTRA_DOC_LINKS,
307307
INVALID_CODEBLOCK_ATTRIBUTES,
308308
MISSING_DOC_CODE_EXAMPLES,
309309
PRIVATE_DOC_TESTS

src/librustc_session/lint/builtin.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ declare_lint! {
398398
}
399399

400400
declare_lint! {
401-
pub INTRA_DOC_RESOLUTION_FAILURES,
401+
pub BROKEN_INTRA_DOC_LINKS,
402402
Warn,
403403
"failures in resolving intra-doc link targets"
404404
}
@@ -601,7 +601,7 @@ declare_lint_pass! {
601601
ABSOLUTE_PATHS_NOT_STARTING_WITH_CRATE,
602602
UNSTABLE_NAME_COLLISIONS,
603603
IRREFUTABLE_LET_PATTERNS,
604-
INTRA_DOC_RESOLUTION_FAILURES,
604+
BROKEN_INTRA_DOC_LINKS,
605605
INVALID_CODEBLOCK_ATTRIBUTES,
606606
MISSING_CRATE_LEVEL_DOCS,
607607
MISSING_DOC_CODE_EXAMPLES,

src/librustdoc/core.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
315315
let cpath = Some(input.clone());
316316
let input = Input::File(input);
317317

318-
let intra_link_resolution_failure_name = lint::builtin::INTRA_DOC_RESOLUTION_FAILURES.name;
318+
let intra_link_resolution_failure_name = lint::builtin::BROKEN_INTRA_DOC_LINKS.name;
319319
let missing_docs = rustc_lint::builtin::MISSING_DOCS.name;
320320
let missing_doc_example = rustc_lint::builtin::MISSING_DOC_CODE_EXAMPLES.name;
321321
let private_doc_tests = rustc_lint::builtin::PRIVATE_DOC_TESTS.name;

src/librustdoc/passes/collect_intra_doc_links.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ fn report_diagnostic(
867867
let attrs = &item.attrs;
868868
let sp = span_of_attrs(attrs).unwrap_or(item.source.span());
869869

870-
cx.tcx.struct_span_lint_hir(lint::builtin::INTRA_DOC_RESOLUTION_FAILURES, hir_id, sp, |lint| {
870+
cx.tcx.struct_span_lint_hir(lint::builtin::BROKEN_INTRA_DOC_LINKS, hir_id, sp, |lint| {
871871
let mut diag = lint.build(msg);
872872

873873
let span = link_range

0 commit comments

Comments
 (0)