mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 00:09:33 +03:00
Merge remote-tracking branch 'origin/trunk' into list-str-capacity
This commit is contained in:
commit
f9f3a255a9
@ -1476,7 +1476,7 @@ fn build_tag_field_value<'a, 'ctx, 'env>(
|
||||
"cast_recursive_pointer",
|
||||
)
|
||||
} else if tag_field_layout.is_passed_by_reference(env.target_info) {
|
||||
debug_assert!(value.is_pointer_value(), "{:#?}", value);
|
||||
debug_assert!(value.is_pointer_value());
|
||||
|
||||
// NOTE: we rely on this being passed to `store_roc_value` so that
|
||||
// the value is memcpy'd
|
||||
|
@ -21,7 +21,6 @@ use roc_target::TargetInfo;
|
||||
|
||||
use super::bitcode::call_list_bitcode_fn;
|
||||
use super::build::store_roc_value;
|
||||
use super::build_list::list_to_c_abi;
|
||||
|
||||
#[repr(transparent)]
|
||||
struct Alignment(u8);
|
||||
@ -715,7 +714,7 @@ pub fn set_from_list<'a, 'ctx, 'env>(
|
||||
call_void_bitcode_fn(
|
||||
env,
|
||||
&[
|
||||
list_to_c_abi(env, list).into(),
|
||||
list,
|
||||
alignment_iv.into(),
|
||||
key_width.into(),
|
||||
value_width.into(),
|
||||
|
@ -1731,10 +1731,10 @@ fn to_precord_report<'a>(
|
||||
},
|
||||
|
||||
PRecord::Colon(_) => {
|
||||
unreachable!("because `{ foo }` is a valid field; the colon is not required")
|
||||
unreachable!("because `foo` is a valid field; the colon is not required")
|
||||
}
|
||||
PRecord::Optional(_) => {
|
||||
unreachable!("because `{ foo }` is a valid field; the question mark is not required")
|
||||
unreachable!("because `foo` is a valid field; the question mark is not required")
|
||||
}
|
||||
|
||||
PRecord::Pattern(pattern, pos) => to_pattern_report(alloc, lines, filename, pattern, pos),
|
||||
|
Loading…
Reference in New Issue
Block a user