-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustdoc: get rid of extra line when line-wrapping fn decls with empty…
… arg list
- Loading branch information
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<pre class="rust item-decl"><code>pub fn create( | ||
) -> <a class="struct" href="struct.Padding00000000000000000000000000000000000000000000000000000000000000000000000000000000.html" title="struct decl_line_wrapping_empty_arg_list::Padding00000000000000000000000000000000000000000000000000000000000000000000000000000000">Padding00000000000000000000000000000000000000000000000000000000000000000000000000000000</a></code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Ensure that we don't add an extra line containing nothing but whitespace in between the two | ||
// parentheses of an empty argument list when line-wrapping a function declaration. | ||
|
||
// ignore-tidy-linelength | ||
|
||
pub struct Padding00000000000000000000000000000000000000000000000000000000000000000000000000000000; | ||
|
||
// @has 'decl_line_wrapping_empty_arg_list/fn.create.html' | ||
// @snapshot decl - '//pre[@class="rust item-decl"]' | ||
pub fn create() -> Padding00000000000000000000000000000000000000000000000000000000000000000000000000000000 { | ||
loop {} | ||
} |