We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce7609 commit c4a5ac2Copy full SHA for c4a5ac2
src/librustdoc/json/conversions.rs
@@ -662,12 +662,10 @@ impl FromWithTcx<clean::Variant> for Variant {
662
Tuple(fields) => Variant::Tuple(
663
fields
664
.into_iter()
665
- .map(|f| {
666
- if let clean::StructFieldItem(ty) = *f.kind {
667
- ty.into_tcx(tcx)
668
- } else {
669
- unreachable!()
670
- }
+ .filter_map(|f| match *f.kind {
+ clean::StructFieldItem(ty) => Some(ty.into_tcx(tcx)),
+ clean::StrippedItem(_) => None,
+ _ => unreachable!(),
671
})
672
.collect(),
673
),
0 commit comments