implement version of normalize_erasing_regions that doesn't assume value is normalizable
This commit is contained in:
parent
2446a21595
commit
ff448cfcee
6 changed files with 203 additions and 3 deletions
|
@ -1337,7 +1337,9 @@ impl<'tcx> LateLintPass<'tcx> for VariantSizeDifferences {
|
|||
let layout = match cx.layout_of(ty) {
|
||||
Ok(layout) => layout,
|
||||
Err(
|
||||
ty::layout::LayoutError::Unknown(_) | ty::layout::LayoutError::SizeOverflow(_),
|
||||
ty::layout::LayoutError::Unknown(_)
|
||||
| ty::layout::LayoutError::SizeOverflow(_)
|
||||
| ty::layout::LayoutError::NormalizationFailure(_, _),
|
||||
) => return,
|
||||
};
|
||||
let (variants, tag) = match layout.variants {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue