Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5859c5d

Browse files
committed
Remove FIXME
Layout errors can occur with valid code, e.g. generic types.
1 parent 001f0dd commit 5859c5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustdoc/html/render/print_item.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,9 @@ fn document_ty_layout(w: &mut Buffer, cx: &Context<'_>, ty_def_id: DefId) {
15511551
}
15521552
writeln!(w, "</div>");
15531553
}
1554-
// FIXME: should we crash instead? or report an error?
1555-
Err(_layout_err) => {}
1554+
// Layout errors can occur with valid code, e.g. if you try to get the layout
1555+
// of a generic type such as `Vec<T>`. In case of a layout error, we just
1556+
// don't show any layout information.
1557+
Err(_) => {}
15561558
}
15571559
}

0 commit comments

Comments
 (0)