-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustdoc: display doc(cfg(false)) properly #141747
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
Conversation
before we had an extra 'on' that was ungramatical. fixes rust-lang#138112
rustbot has assigned @GuillaumeGomez. Use |
Thanks! r=me once CI pass. @bors delegate=lolbinarycat |
✌️ @lolbinarycat, you can now approve this pull request! If @GuillaumeGomez told you to " |
@@ -171,10 +171,15 @@ impl Cfg { | |||
|
|||
/// Renders the configuration for long display, as a long HTML description. | |||
pub(crate) fn render_long_html(&self) -> String { | |||
let on = if self.should_use_with_in_description() { "with" } else { "on" }; | |||
let on = if self.omit_preposition() { |
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.
The render_long_plain
function below should also have this change applied. Really it seems like we could extract a shared function that they both delegate to since the only difference is the format AFAICT.
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.
Good point, sending a PR.
Rollup of 8 pull requests Successful merges: - #133823 (Use `cfg_attr_trace` in AST with a placeholder attribute for accurate suggestion) - #141004 (Report text_direction_codepoint_in_literal when parsing) - #141407 (Refactor the two-phase check for impls and impl items) - #141430 (remove `visit_clobber` and move `DummyAstNode` to `rustc_expand`) - #141507 (atomic_load intrinsic: use const generic parameter for ordering) - #141538 (implement `va_arg` for x86_64 systemv) - #141669 (float: Replace some approximate assertions with exact) - #141747 (rustdoc: display doc(cfg(false)) properly) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #141747 - lolbinarycat:rustdoc-cfg-138112, r=GuillaumeGomez rustdoc: display doc(cfg(false)) properly before we had an extra 'on' that was ungramatical. fixes #138112 this is what it looks like now: 
Rollup of 8 pull requests Successful merges: - rust-lang/rust#133823 (Use `cfg_attr_trace` in AST with a placeholder attribute for accurate suggestion) - rust-lang/rust#141004 (Report text_direction_codepoint_in_literal when parsing) - rust-lang/rust#141407 (Refactor the two-phase check for impls and impl items) - rust-lang/rust#141430 (remove `visit_clobber` and move `DummyAstNode` to `rustc_expand`) - rust-lang/rust#141507 (atomic_load intrinsic: use const generic parameter for ordering) - rust-lang/rust#141538 (implement `va_arg` for x86_64 systemv) - rust-lang/rust#141669 (float: Replace some approximate assertions with exact) - rust-lang/rust#141747 (rustdoc: display doc(cfg(false)) properly) r? `@ghost` `@rustbot` modify labels: rollup
before we had an extra 'on' that was
ungramatical.
fixes #138112
this is what it looks like now:
