pub fn report_layout_mismatch(
type_name: &str,
stored: impl Display,
own: impl Display,
)Expand description
Record that type_name has layout stored in the image that created a value and own in the
image now handling it. The record is kept until it is reported to the host: it is returned by
pending_layout_mismatches and cleared by mark_layout_mismatches_reported. Identical
records collapse into one. While any record is unreported, every apply entry
(apply_patch, apply_from_devtools) refuses.
Callable from any thread, including from a Drop; it never panics.