-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
rustdoc: get rid of extra line when line-wrapping fn decls with empty arg list #113013
rustdoc: get rid of extra line when line-wrapping fn decls with empty arg list #113013
Conversation
r? @jsha (rustbot has picked a reviewer for you, use r? to override) |
pub struct Padding00000000000000000000000000000000000000000000000000000000000000000000000000000000; | ||
|
||
// @has 'decl_line_wrapping_empty_arg_list/fn.create.html' | ||
// @snapshot decl - '//pre[@class="rust item-decl"]' |
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.
Using @snapshot
instead of @has
since I couldn't figure out if it was possible to test for the presence of line breaks with it (I love the Htmldocck DSL ^^).
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.
Thanks!
@bors r+ rollup |
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#112976 (Add test for futures with HRTB) - rust-lang#113013 (rustdoc: get rid of extra line when line-wrapping fn decls with empty arg list) - rust-lang#113030 (Add a regression test for rust-lang#109071) - rust-lang#113031 (Add a regression test for rust-lang#110933) - rust-lang#113036 (Accept `ReStatic` for RPITIT) r? `@ghost` `@rustbot` modify labels: rollup
Fixes bevyengine/bevy#8898 (comment):
It now prints as shown below (which conforms to the style guide):
The bug was introduced in #109011.