forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#118192 - Kyuuhachi:issue-118180, r=fmease
Don't print "private fields" on empty tuple structs Closes rust-lang#118180. While working on this I also noticed that empty struct variants are also rendered rather awkwardly. I'll make another issue for that, since I don't know what the correct rendering would be.
- Loading branch information
Showing
2 changed files
with
18 additions
and
5 deletions.
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,9 @@ | ||
// @has issue_118180_empty_tuple_struct/enum.Enum.html | ||
pub enum Enum { | ||
// @has - '//*[@id="variant.Empty"]//h3' 'Empty()' | ||
Empty(), | ||
} | ||
|
||
// @has issue_118180_empty_tuple_struct/struct.Empty.html | ||
// @has - '//pre/code' 'Empty()' | ||
pub struct Empty(); |