mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
remove single element record
This commit is contained in:
parent
6744e009ac
commit
368d45fb01
5 changed files with 6 additions and 29 deletions
|
@ -1423,18 +1423,6 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
|||
Reset(_) => todo!(),
|
||||
Reuse { .. } => todo!(),
|
||||
|
||||
AccessAtIndex {
|
||||
index,
|
||||
structure,
|
||||
wrapped: Wrapped::SingleElementRecord,
|
||||
field_layouts,
|
||||
..
|
||||
} => {
|
||||
debug_assert_eq!(field_layouts.len(), 1);
|
||||
debug_assert_eq!(*index, 0);
|
||||
load_symbol(scope, structure)
|
||||
}
|
||||
|
||||
AccessAtIndex {
|
||||
index,
|
||||
structure,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue