mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-20 19:04:21 +00:00
Remove FIXME
Layout errors can occur with valid code, e.g. generic types.
This commit is contained in:
parent
001f0dd5a1
commit
5859c5d333
@ -1551,7 +1551,9 @@ fn document_ty_layout(w: &mut Buffer, cx: &Context<'_>, ty_def_id: DefId) {
|
||||
}
|
||||
writeln!(w, "</div>");
|
||||
}
|
||||
// FIXME: should we crash instead? or report an error?
|
||||
Err(_layout_err) => {}
|
||||
// Layout errors can occur with valid code, e.g. if you try to get the layout
|
||||
// of a generic type such as `Vec<T>`. In case of a layout error, we just
|
||||
// don't show any layout information.
|
||||
Err(_) => {}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user