roc/crates/compiler/test_mono/generated
Ayaz Hafiz 078f0147ee
Do not bind accessors in toplevel thunks to their thunks' names
In #3352 an optimization to transform `ra = .field` into

```
ra = \#rcd -[ra]-> #rcd.field
```

rather than

```
__ra1 = \#rcd -[__ra1] -> #rcd.field

ra = LambdaSet { __ra1 }
```

was introduced. However, this optimization is not correct when `ra =
.field` is defined as a toplevel thunk, for in such situations we
indeed want the thunk `ra` to return the lambda set it resolves to,
rather than repointing at itself.

Besides reverting this change, another option would be to convert
accessors into closures before translation of Can to IR. However, this
complicates the translation algorithm more than it already is, and I'd
like to avoid additional special-cases.

Closes #4606
2022-12-02 08:50:03 -06:00
..
alias_variable_and_return_it.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
alias_variable.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
anonymous_closure_lifted_to_named_issue_2403.txt Correctly compile rvalue closures defined in nested defines to lvalues 2022-12-01 15:47:18 -06:00
branch_store_variable.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
call_function_in_empty_list_unbound.txt Update mono 2022-11-24 14:46:54 -06:00
call_function_in_empty_list.txt Update mono 2022-11-24 14:46:54 -06:00
choose_i128_layout.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
choose_u64_layout.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
choose_u128_layout.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
closure_in_list.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
crash.txt Update mono 2022-11-24 14:46:54 -06:00
dict.txt Update mono...for some reason 2022-11-04 17:18:32 -04:00
empty_list_of_function_type.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
encode_derived_nested_record_string.txt Update mono tests 2022-11-24 14:46:53 -06:00
encode_derived_record_one_field_string.txt Update mono tests 2022-11-24 14:46:53 -06:00
encode_derived_record_two_field_strings.txt Update mono tests 2022-11-24 14:46:53 -06:00
encode_derived_string.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
encode_derived_tag_one_field_string.txt Update mono tests 2022-11-24 14:46:53 -06:00
encode_derived_tag_two_payloads_string.txt Update mono tests 2022-11-24 14:46:53 -06:00
encode.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
factorial.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
fst.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
function_pointer_lambda_set.txt Do not attempt to handle aliasing of procs in variable assignments 2022-12-01 15:20:58 -06:00
guard_pattern_true.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
if_guard_bind_variable_false.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
if_multi_branch.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
instantiate_annotated_as_recursive_alias_multiple_polymorphic_expr.txt Update tests 2022-07-18 17:55:02 -04:00
instantiate_annotated_as_recursive_alias_polymorphic_expr.txt Update tests 2022-07-18 17:55:02 -04:00
instantiate_annotated_as_recursive_alias_toplevel.txt Update tests 2022-07-18 17:55:02 -04:00
ir_assignment.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
ir_int_add.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
ir_int_literal.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
ir_plus.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
ir_round.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
ir_two_defs.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
ir_when_idiv.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
ir_when_just.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
ir_when_maybe.txt Remove tag_name from Expr::Tag 2022-07-03 16:48:51 -04:00
ir_when_record.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
ir_when_these.txt Remove tag_name from Expr::Tag 2022-07-03 16:48:51 -04:00
is_nil.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
issue_2535_polymorphic_fields_referenced_in_list.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
issue_2583_specialize_errors_behind_unified_branches.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
issue_2725_alias_polymorphic_lambda.txt Do not attempt to handle aliasing of procs in variable assignments 2022-12-01 15:20:58 -06:00
issue_2810.txt Update tests 2022-07-18 17:55:02 -04:00
issue_2811.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
issue_3560_nested_tag_constructor_is_newtype.txt Reflect newtypes in path instructions 2022-07-21 18:17:57 -04:00
issue_3669.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
lambda_capture_niche_u8_vs_u64.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
lambda_capture_niches_have_captured_function_in_closure.txt Do not attempt to handle aliasing of procs in variable assignments 2022-12-01 15:20:58 -06:00
lambda_capture_niches_with_non_capturing_function.txt Do not attempt to handle aliasing of procs in variable assignments 2022-12-01 15:20:58 -06:00
lambda_capture_niches_with_other_lambda_capture.txt Remove tag_name from Expr::Tag 2022-07-03 16:48:51 -04:00
lambda_set_niche_same_layout_different_constructor.txt Treat unwrapped capture sets as unwrapped directly 2022-08-19 22:16:41 -05:00
let_with_record_pattern_list.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
let_with_record_pattern.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
let_x_in_x_indirect.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
let_x_in_x.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
list_append_closure.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
list_append.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
list_cannot_update_inplace.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
list_get.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
list_len.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
list_map_closure_borrows.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
list_map_closure_owns.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
list_pass_to_function.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
list_sort_asc.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
match_list.txt Compute list element stores lazily 2022-11-01 15:37:36 -05:00
match_on_result_with_uninhabited_error_branch.txt Unwrap layouts containing void layouts as newtypes 2022-09-19 16:50:49 -05:00
mk_pair_of.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
monomorphized_applied_tag.txt Remove tag_name from Expr::Tag 2022-07-03 16:48:51 -04:00
monomorphized_floats.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
monomorphized_ints.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
monomorphized_list.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
monomorphized_tag_with_aliased_args.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
monomorphized_tag.txt Update tests 2022-09-20 14:42:03 -05:00
nested_closure.txt Treat unwrapped capture sets as unwrapped directly 2022-08-19 22:16:41 -05:00
nested_pattern_match.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
num_width_gt_u8_layout_as_float.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
one_element_tag.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
opaque_assign_to_symbol.txt Update tests 2022-07-18 17:55:02 -04:00
optional_when.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
peano1.txt Update mono tests 2022-07-25 11:44:48 -04:00
peano2.txt Update mono tests 2022-07-25 11:44:48 -04:00
peano.txt Update tests 2022-07-18 17:55:02 -04:00
quicksort_help.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
quicksort_swap.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
record_optional_field_function_no_use_default.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
record_optional_field_function_use_default.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
record_optional_field_let_no_use_default.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
record_optional_field_let_use_default.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
recursive_call_capturing_function.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
rigids.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
simple_if.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
specialize_ability_call.txt Update tests 2022-07-18 17:55:02 -04:00
specialize_closures.txt Do not attempt to handle aliasing of procs in variable assignments 2022-12-01 15:20:58 -06:00
specialize_lowlevel.txt Do not attempt to handle aliasing of procs in variable assignments 2022-12-01 15:20:58 -06:00
tail_call_elimination.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
tail_call_with_different_layout.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
tail_call_with_same_layout_different_lambda_sets.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
toplevel_accessor_fn_thunk.txt Do not bind accessors in toplevel thunks to their thunks' names 2022-12-02 08:50:03 -06:00
unreachable_branch_is_eliminated_but_produces_lambda_specializations.txt Do not attempt to handle aliasing of procs in variable assignments 2022-12-01 15:20:58 -06:00
unreachable_void_constructor.txt Update mono 2022-11-24 14:46:54 -06:00
when_joinpoint.txt moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
when_nested_maybe.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
when_on_record.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00
when_on_result.txt Remove tag_name from Expr::Tag 2022-07-03 16:48:51 -04:00
when_on_two_values.txt Consolidate mono test behavior in debug and release modes 2022-11-02 15:04:47 -05:00