Make rustdoc lints a tool lint instead of built-in#80527
Make rustdoc lints a tool lint instead of built-in#80527bors merged 7 commits intorust-lang:masterfrom
Conversation
This comment has been minimized.
This comment has been minimized.
|
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
💔 Test failed - checks-actions |
|
@bors retry |
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))
|
I would have liked to see the It is not possible to run both nightly and stable builds with |
If you use the original name ( |
|
@jyn514 does the introduction of a new tool name mean that declaring this lint as a crate level warn pragma will bump the MSRV of the crate? |
Since the lint has been removed, does this mean running nightly rustdoc will not detect broken intradoc links anymore? |
No, the lint name will still apply (since #82620).
Yes, unfortunately. There's no way to fix this because past releases are immutable (ideally the unknown tool name would only be a warning and not a hard error). |
|
Thanks for the context. I think the best path forward for me is to remove the pragmas and add
Has this change landed in nightly/is there a ticket for it? |
I think #66079 (comment) is the closest issue. |
|
Thank you! |
broken_intra_doc_linkstorustdoc::broken_intra_doc_links(and similar for other rustdoc lints; I don't expect any others to be used frequently, though).declare_rustdoc_lint!macroUnblocks #80300, #79816, #80965. Makes the strangeness in #77364 more apparent to the end user (note that
missing_docsis not moved to rustdoc in this PR). Closes #78786.Current status
This is blocked on #82620 (see #80527 (comment))