Introduce StructFlags

This commit is contained in:
Lukas Wirth 2023-03-30 09:37:52 +02:00
parent 251b3a47af
commit 33b6012827
8 changed files with 93 additions and 58 deletions

View file

@ -71,7 +71,7 @@ pub fn layout_of_adt_query(
&repr,
&variants,
is_enum,
is_unsafe_cell(def, db),
is_unsafe_cell(db, def),
layout_scalar_valid_range(db, def),
|min, max| Integer::repr_discr(&dl, &repr, min, max).unwrap_or((Integer::I8, false)),
variants.iter_enumerated().filter_map(|(id, _)| {