This commit is contained in:
Folkert 2021-08-07 01:12:42 +02:00
parent 69c224843e
commit e0039b94c9
7 changed files with 28 additions and 30 deletions

View file

@ -1210,7 +1210,7 @@ fn layout_from_flat_type<'a>(
Record(fields, ext_var) => {
// extract any values from the ext_var
// TODO short-circuit the sorting here
let mut fields_map: MutMap<_, _> = fields.sorted_iterator(subs, ext_var).collect();
let fields_map: MutMap<_, _> = fields.sorted_iterator(subs, ext_var).collect();
// discard optional fields
let mut layouts = sort_stored_record_fields(env, fields_map);