-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature gate the rustdoc::missing_doc_code_examples
lint
#101732
Conversation
r? @fee1-dead (rust-highfive has picked a reviewer for you, use r? to override) |
@@ -221,6 +221,8 @@ declare_features! ( | |||
(active, rustc_private, "1.0.0", Some(27812), None), | |||
/// Allows using internal rustdoc features like `doc(primitive)` or `doc(keyword)`. | |||
(active, rustdoc_internals, "1.58.0", Some(90418), None), | |||
/// Allows using the `rustdoc::missing_doc_code_examples` lint | |||
(active, rustdoc_missing_doc_code_examples, "1.31.0", Some(101730), None), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the version the original lint merged into, I'm not sure if this should just use the current nightly version instead though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose it doesn't matter much. The important version is the stable one once it gets stabilized.
0ea9508
to
d09ff68
Compare
Yes 🙄 |
Looks good to me, thanks! r=me once Ci pass |
d09ff68
to
72cf46a
Compare
@bors r=GuillaumeGomez rollup |
…llaumeGomez Rollup of 8 pull requests Successful merges: - rust-lang#100185 (Fix `ReErased` leaking into typeck due to `typeof(...)` recovery) - rust-lang#100291 (constify some `CStr` methods) - rust-lang#101677 (Add test for rust-lang#101211) - rust-lang#101723 (Impove diagnostic for `.await`ing non-futures) - rust-lang#101724 (Allow unauthenticated users to add the `const-hack` label) - rust-lang#101731 (rustdoc: improve rustdoc HTML suggestions handling of nested generics) - rust-lang#101732 (Feature gate the `rustdoc::missing_doc_code_examples` lint) - rust-lang#101735 (rustdoc: fix treatment of backslash-escaped HTML) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This Pull Request updates the codebase to the newest version of rustc (1.65.0). It changes the following: - Bumps `rust-version` to 1.65.0. - Rewrites some snippets to use the new let else, ok_or_else and some other utils. - Removes the `rustdoc::missing_doc_code_examples` allow lint from our codebase. (Context: rust-lang/rust#101732)
Moves the lint from being implicitly active on nightly
rustdoc
to requiring a feature to activate, like other unstable lints.Uses the new tracking issue #101730