only allow restricting scalar layouts
This commit is contained in:
parent
833dc7e682
commit
88ebb95f46
1 changed files with 2 additions and 1 deletions
|
@ -779,7 +779,8 @@ impl<'a, 'tcx> LayoutCx<'tcx, TyCtxt<'a, 'tcx, 'tcx>> {
|
|||
scalar.valid_range = *scalar.valid_range.start()..=end;
|
||||
}
|
||||
}
|
||||
_ => bug!(
|
||||
_ => assert!(
|
||||
start == Bound::Unbounded && end == Bound::Unbounded,
|
||||
"nonscalar layout for layout_scalar_valid_range type {:?}: {:#?}",
|
||||
def,
|
||||
st,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue