mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-13 07:16:18 +00:00
rust update, nix update, clippy fixes
This commit is contained in:
parent
32fcb38a94
commit
e784baccce
37 changed files with 289 additions and 244 deletions
|
@ -72,8 +72,8 @@ roc_error_macros::assert_sizeof_wasm!(Call, 44);
|
|||
roc_error_macros::assert_sizeof_wasm!(CallType, 36);
|
||||
|
||||
roc_error_macros::assert_sizeof_non_wasm!(Literal, 3 * 8);
|
||||
roc_error_macros::assert_sizeof_non_wasm!(Expr, 9 * 8);
|
||||
roc_error_macros::assert_sizeof_non_wasm!(Stmt, 12 * 8);
|
||||
roc_error_macros::assert_sizeof_non_wasm!(Expr, 10 * 8);
|
||||
roc_error_macros::assert_sizeof_non_wasm!(Stmt, 13 * 8);
|
||||
roc_error_macros::assert_sizeof_non_wasm!(ProcLayout, 5 * 8);
|
||||
roc_error_macros::assert_sizeof_non_wasm!(Call, 9 * 8);
|
||||
roc_error_macros::assert_sizeof_non_wasm!(CallType, 7 * 8);
|
||||
|
@ -279,8 +279,9 @@ impl AbilityAliases {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Default)]
|
||||
pub enum CapturedSymbols<'a> {
|
||||
#[default]
|
||||
None,
|
||||
Captured(&'a [(Symbol, Variable)]),
|
||||
}
|
||||
|
@ -294,12 +295,6 @@ impl<'a> CapturedSymbols<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> Default for CapturedSymbols<'a> {
|
||||
fn default() -> Self {
|
||||
CapturedSymbols::None
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub struct Proc<'a> {
|
||||
pub name: LambdaName<'a>,
|
||||
|
@ -2722,8 +2717,8 @@ fn patterns_to_when<'a>(
|
|||
/// { x } -> body
|
||||
///
|
||||
/// conversion of one-pattern when expressions will do the most optimal thing
|
||||
fn pattern_to_when<'a>(
|
||||
env: &mut Env<'a, '_>,
|
||||
fn pattern_to_when(
|
||||
env: &mut Env<'_, '_>,
|
||||
pattern_var: Variable,
|
||||
pattern: Loc<roc_can::pattern::Pattern>,
|
||||
body_var: Variable,
|
||||
|
@ -5740,8 +5735,8 @@ fn compile_struct_like<'a, L, UnusedLayout>(
|
|||
}
|
||||
|
||||
#[inline(always)]
|
||||
fn late_resolve_ability_specialization<'a>(
|
||||
env: &mut Env<'a, '_>,
|
||||
fn late_resolve_ability_specialization(
|
||||
env: &mut Env<'_, '_>,
|
||||
member: Symbol,
|
||||
specialization_id: Option<SpecializationId>,
|
||||
specialization_var: Variable,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue