diff --git a/crates/cairo-lang-lowering/src/lower/lower_match.rs b/crates/cairo-lang-lowering/src/lower/lower_match.rs index d3616d73619..8829bf0bfbf 100644 --- a/crates/cairo-lang-lowering/src/lower/lower_match.rs +++ b/crates/cairo-lang-lowering/src/lower/lower_match.rs @@ -744,7 +744,7 @@ pub(crate) fn lower_concrete_enum_match( )?; let mut arm_var_ids = vec![]; let mut block_ids = vec![]; - let varinats_block_builders = concrete_variants + let variants_block_builders = concrete_variants .iter() .map(|concrete_variant| { let PatternPath { arm_index, pattern_index } = variant_map @@ -836,7 +836,7 @@ pub(crate) fn lower_concrete_enum_match( empty_match_info, location, arms, - varinats_block_builders, + variants_block_builders, match_type, )?; @@ -887,7 +887,7 @@ pub(crate) fn lower_optimized_extern_match( let mut arm_var_ids = vec![]; let mut block_ids = vec![]; - let varinats_block_builders = concrete_variants + let variants_block_builders = concrete_variants .iter() .map(|concrete_variant| { let mut subscope = create_subscope(ctx, builder); @@ -969,7 +969,7 @@ pub(crate) fn lower_optimized_extern_match( empty_match_info, location, match_arms, - varinats_block_builders, + variants_block_builders, match_type, )?; let match_info = MatchInfo::Extern(MatchExternInfo { @@ -1000,10 +1000,10 @@ fn group_match_arms( empty_match_info: MatchInfo, location: LocationId, arms: &[MatchArmWrapper], - varinats_block_builders: Vec, + variants_block_builders: Vec, kind: MatchKind, ) -> LoweringResult> { - varinats_block_builders + variants_block_builders .into_iter() .sorted_by_key(|MatchLeafBuilder { arm_index, .. }| *arm_index) .group_by(|MatchLeafBuilder { arm_index, .. }| *arm_index) diff --git a/crates/cairo-lang-plugins/src/test_data/derive b/crates/cairo-lang-plugins/src/test_data/derive index b02bbb3c536..6f34b2ed345 100644 --- a/crates/cairo-lang-plugins/src/test_data/derive +++ b/crates/cairo-lang-plugins/src/test_data/derive @@ -412,7 +412,7 @@ struct UnsupportedTrait {} struct NonSimplePath {} #[derive(Clone)] -extern type NotClonable; +extern type NotCloneable; #[derive(Default)] enum NoDefaultValue { @@ -442,7 +442,7 @@ struct UnsupportedTrait {} struct NonSimplePath {} #[derive(Clone)] -extern type NotClonable; +extern type NotCloneable; #[derive(Default)] enum NoDefaultValue {