Skip to content

Commit 8b59fee

Browse files
authored
Rollup merge of rust-lang#80527 - jyn514:rustdoc-lints, r=GuillaumeGomez
Make rustdoc lints a tool lint instead of built-in - Rename `broken_intra_doc_links` to `rustdoc::broken_intra_doc_links` (and similar for other rustdoc lints; I don't expect any others to be used frequently, though). - Ensure that the old lint names still work and give deprecation errors - Register lints even when running doctests - Move lint machinery into a separate file - Add `declare_rustdoc_lint!` macro Unblocks rust-lang#80300, rust-lang#79816, rust-lang#80965. Makes the strangeness in rust-lang#77364 more apparent to the end user (note that `missing_docs` is *not* moved to rustdoc in this PR). Closes rust-lang#78786. ## Current status This is blocked on rust-lang#82620 (see rust-lang#80527 (comment))
2 parents 55749f2 + 2afc270 commit 8b59fee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ pub mod primitive;
297297
unused_imports,
298298
unsafe_op_in_unsafe_fn
299299
)]
300-
#[allow(non_autolinks)]
300+
#[cfg_attr(bootstrap, allow(non_autolinks))]
301+
#[cfg_attr(not(bootstrap), allow(rustdoc::non_autolinks))]
301302
// FIXME: This annotation should be moved into rust-lang/stdarch after clashing_extern_declarations is
302303
// merged. It currently cannot because bootstrap fails as the lint hasn't been defined yet.
303304
#[allow(clashing_extern_declarations)]

0 commit comments

Comments
 (0)