Merge remote-tracking branch 'origin/trunk' into list-str-capacity

This commit is contained in:
Folkert 2022-03-31 19:19:36 +02:00
commit f9f3a255a9
No known key found for this signature in database
GPG Key ID: 1F17F6FFD112B97C
3 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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(),

View File

@ -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),