layout computation: eagerly error for unexpected unsized fields
This commit is contained in:
parent
16be6666d4
commit
697450151c
25 changed files with 1246 additions and 1115 deletions
|
@ -128,7 +128,7 @@ fn dump_layout_of(tcx: TyCtxt<'_>, item_def_id: LocalDefId, attr: &Attribute) {
|
|||
}
|
||||
|
||||
Err(layout_error) => {
|
||||
tcx.dcx().emit_fatal(Spanned { node: layout_error.into_diagnostic(), span });
|
||||
tcx.dcx().emit_err(Spanned { node: layout_error.into_diagnostic(), span });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue