mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Introduce StructFlags
This commit is contained in:
parent
251b3a47af
commit
33b6012827
8 changed files with 93 additions and 58 deletions
|
@ -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, _)| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue