Skip to content

rustdoc: properly nest markup within enum variant lists (fixes #6605) - #6700

Closed
ben0x539 wants to merge 1 commit into
rust-lang:incomingfrom
ben0x539:nestvariantdocs
Closed

rustdoc: properly nest markup within enum variant lists (fixes #6605)#6700
ben0x539 wants to merge 1 commit into
rust-lang:incomingfrom
ben0x539:nestvariantdocs

Conversation

@ben0x539

Copy link
Copy Markdown
Contributor

This indents all but the first line of multi-line annotations for individual enum variants with four spaces so that pandoc will recognize everything as belonging to the same list item.

Since that introduces <p> tags for some list items, I've gone ahead and inserted blank lines after each list item so that consistently get <p> tags for all <li>s documenting variants. It's a bit less compact now but still tolerable, I think.

…ang#6605)
This indents all but the first line of multi-line annotations for
individual enum variants with four spaces so that pandoc will
recognize everything as belonging to the same list item.
Since that introduces `<p>` tags for some list items, I've gone ahead
and inserted blank lines after each list item so that consistently
get `<p>` tags for all `<li>`s documenting variants. It's a bit less
compact now but still tolerable, I think.
@ben0x539

Copy link
Copy Markdown
ContributorAuthor

I force-pushed a rebased commit to my branch.

bors added a commit that referenced this pull request May 26, 2013
This indents all but the first line of multi-line annotations for individual enum variants with four spaces so that pandoc will recognize everything as belonging to the same list item.
Since that introduces `<p>` tags for some list items, I've gone ahead and inserted blank lines after each list item so that consistently get `<p>` tags for all `<li>`s documenting variants. It's a bit less compact now but still tolerable, I think.
@borsbors closed this May 26, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 25, 2021
Fix missing_panics_doc warning on `unreachable!`.
Fixesrust-lang#6699.
Are there any other test-cases I should cover?
changelog: [`missing_panics_doc`](https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc): No longer lints on [`unreachable!`](https://doc.rust-lang.org/std/macro.unreachable.html)
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
6700: More macro diagnostics improvements r=jonas-schievink a=jonas-schievink
This threads macro expansion errors through `eager.rs` and the `AsMacroCall` trait, improving macro diagnostics emitted during body lowering.
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@ben0x539@thestinger@bors