mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 21:40:58 +00:00
various
This commit is contained in:
parent
d7c1be6a44
commit
c019ced31d
9 changed files with 819 additions and 1301 deletions
|
|
@ -453,7 +453,6 @@ pub fn test(matches: &ArgMatches, triple: Triple) -> io::Result<i32> {
|
|||
|
||||
let arena = &arena;
|
||||
let target = &triple;
|
||||
let opt_level = opt_level;
|
||||
let target_info = TargetInfo::from(target);
|
||||
// TODO may need to determine this dynamically based on dev builds.
|
||||
let function_kind = FunctionKind::LambdaSet;
|
||||
|
|
|
|||
|
|
@ -1108,7 +1108,7 @@ fn deep_copy_type_vars<C: CopyEnv>(
|
|||
}
|
||||
for uls_index in unspecialized {
|
||||
let Uls(var, _, _) = env.source()[uls_index];
|
||||
descend_var!(var);
|
||||
let _ignored = descend_var!(var);
|
||||
}
|
||||
let new_ambient_function = descend_var!(ambient_function);
|
||||
|
||||
|
|
|
|||
|
|
@ -400,6 +400,7 @@ fn hash_newtype_tag_union(
|
|||
let hasher_var = synth_var(env.subs, Content::FlexAbleVar(None, Subs::AB_HASHER));
|
||||
|
||||
// A
|
||||
#[allow(clippy::redundant_locals)]
|
||||
let tag_name = tag_name;
|
||||
// t1 .. tn
|
||||
let payload_vars = payload_variables;
|
||||
|
|
|
|||
|
|
@ -4030,7 +4030,6 @@ fn const_i128<'ctx>(env: &Env<'_, 'ctx, '_>, value: i128) -> IntValue<'ctx> {
|
|||
|
||||
fn const_u128<'ctx>(env: &Env<'_, 'ctx, '_>, value: u128) -> IntValue<'ctx> {
|
||||
// truncate the lower 64 bits
|
||||
let value = value;
|
||||
let a = value as u64;
|
||||
|
||||
// get the upper 64 bits
|
||||
|
|
|
|||
|
|
@ -1043,8 +1043,8 @@ fn insert_refcount_operations_binding<'a>(
|
|||
|
||||
closure_env_layout: _,
|
||||
|
||||
/// update mode of the higher order lowlevel itself
|
||||
update_mode: _,
|
||||
// update mode of the higher order lowlevel itself
|
||||
update_mode: _,
|
||||
|
||||
passed_function,
|
||||
}) => {
|
||||
|
|
|
|||
|
|
@ -442,7 +442,7 @@ pub trait LayoutInterner<'a>: Sized {
|
|||
pub struct InLayout<'a>(usize, std::marker::PhantomData<&'a ()>);
|
||||
impl<'a> Clone for InLayout<'a> {
|
||||
fn clone(&self) -> Self {
|
||||
Self(self.0, Default::default())
|
||||
*self
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -540,6 +540,7 @@ pub(crate) fn type_to_var_help(
|
|||
)
|
||||
.expect("extension var could not be seen as a tag union");
|
||||
|
||||
#[allow(clippy::never_loop)]
|
||||
for _ in it {
|
||||
unreachable!("we assert that the ext var is empty; otherwise we'd already know it was a tag union!");
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -711,9 +711,9 @@ fn to_expr_report<'b>(
|
|||
let thing = match annotation_source {
|
||||
TypedIfBranch {
|
||||
index,
|
||||
num_branches,
|
||||
num_branches: 2,
|
||||
..
|
||||
} if num_branches == 2 => alloc.concat([
|
||||
} => alloc.concat([
|
||||
alloc.keyword(if index == HumanIndex::FIRST {
|
||||
"then"
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue