We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried this code:
//! lib.rs pub trait FooTrait { fn func(); } /// Struct doc. /// /// | header1 | header2 | /// |--------------------------|--------------------------| /// | Lorem Ipsum, Lorem Ipsum | Lorem Ipsum, Lorem Ipsum | pub struct Foo {} impl FooTrait for Foo { /// Trait impl func doc for foo struct. /// /// | header1 | header2 | /// |--------------------------|--------------------------| /// | Lorem Ipsum, Lorem Ipsum | Lorem Ipsum, Lorem Ipsum | fn func() { println!(); } }
I expected to see this happen: The Markdown table in the doc is supposed to have the same rendering in a trait implementation and elsewhere.
Instead, this happened: explanation The Markdown table in the doc of a trait function implementation is not correct.
There is no separation between columns and rows. Except for the header table.
Also, I don't know if it's intentional but the table header is not centered (see header1 and header2), as it is supposed to be in markdown.
rustc --version --verbose: I tested on both Stable and Nightly channels.
rustc --version --verbose
# Stable rustc 1.63.0 (4b91a6ea7 2022-08-08) binary: rustc commit-hash: 4b91a6ea7258a947e59c6522cd5898e7c0a6a88f commit-date: 2022-08-08 host: x86_64-unknown-linux-gnu release: 1.63.0 LLVM version: 14.0.5 # Nightly rustc 1.65.0-nightly (addacb587 2022-08-24) binary: rustc commit-hash: addacb5878b9970ebc1665768a05cb601e7aea15 commit-date: 2022-08-24 host: x86_64-unknown-linux-gnu release: 1.65.0-nightly LLVM version: 15.0.0
The text was updated successfully, but these errors were encountered:
.impl-items table td
Rollup merge of rust-lang#101046 - notriddle:notriddle/table-css, r=jsha
d4bd059
rustdoc: remove incorrect CSS selector `.impl-items table td` Fixes rust-lang#100994 This selector was added in c7312fb. The bug can be seen at <https://doc.rust-lang.org/1.27.0/alloc/slice/trait.SliceIndex.html#foreign-impls>. This rule was added to help with a `<table>` that was used for displaying the function signature [src] lockup. That lockup was changed in 34bd2b8 to use flexbox instead, leaving this selector unused (at least, for its original purpose).
0cad274
25eb52f
Successfully merging a pull request may close this issue.
I tried this code:
I expected to see this happen:
The Markdown table in the doc is supposed to have the same rendering in a trait implementation and elsewhere.
Instead, this happened: explanation
The Markdown table in the doc of a trait function implementation is not correct.
There is no separation between columns and rows. Except for the header table.
Also, I don't know if it's intentional but the table header is not centered (see header1 and header2), as it is supposed to be in markdown.
Meta
rustc --version --verbose
:I tested on both Stable and Nightly channels.
The text was updated successfully, but these errors were encountered: