auto merge of #11018 : sfackler/rust/variant-strip, r=alexcrichton
Previously, if every variant was private, it would display as a variantless enum instead of having the "some variants stripped" comment.
This commit is contained in:
commit
1fee5cd953
2 changed files with 6 additions and 11 deletions
|
|
@ -1202,7 +1202,7 @@ fn item_enum(w: &mut Writer, it: &clean::Item, e: &clean::Enum) {
|
|||
VisSpace(it.visibility),
|
||||
it.name.get_ref().as_slice(),
|
||||
e.generics);
|
||||
if e.variants.len() == 0 {
|
||||
if e.variants.len() == 0 && !e.variants_stripped {
|
||||
write!(w, " \\{\\}");
|
||||
} else {
|
||||
write!(w, " \\{\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue