mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
clippy stuff
This commit is contained in:
parent
4f007dd535
commit
ceefdc73b1
1 changed files with 3 additions and 1 deletions
|
@ -314,6 +314,8 @@ fn layout_from_flat_type<'a>(
|
|||
let mut layouts = Vec::with_capacity_in(sorted_fields.len(), arena);
|
||||
|
||||
for (_, field_var) in sorted_fields {
|
||||
use LayoutProblem::*;
|
||||
|
||||
let field_content = subs.get_without_compacting(field_var).content;
|
||||
|
||||
match Layout::new(arena, field_content, subs, pointer_size) {
|
||||
|
@ -323,7 +325,7 @@ fn layout_from_flat_type<'a>(
|
|||
layouts.push(layout);
|
||||
}
|
||||
}
|
||||
Err(_) => {
|
||||
Err(UnresolvedTypeVar) | Err(Erroneous) => {
|
||||
// Invalid field!
|
||||
panic!("TODO gracefully handle record with invalid field.var");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue