Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typos #6443

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions crates/cairo-lang-lowering/src/lower/lower_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -836,7 +836,7 @@ pub(crate) fn lower_concrete_enum_match(
empty_match_info,
location,
arms,
varinats_block_builders,
variants_block_builders,
match_type,
)?;

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -1000,10 +1000,10 @@ fn group_match_arms(
empty_match_info: MatchInfo,
location: LocationId,
arms: &[MatchArmWrapper],
varinats_block_builders: Vec<MatchLeafBuilder>,
variants_block_builders: Vec<MatchLeafBuilder>,
kind: MatchKind,
) -> LoweringResult<Vec<SealedBlockBuilder>> {
varinats_block_builders
variants_block_builders
.into_iter()
.sorted_by_key(|MatchLeafBuilder { arm_index, .. }| *arm_index)
.group_by(|MatchLeafBuilder { arm_index, .. }| *arm_index)
Expand Down
4 changes: 2 additions & 2 deletions crates/cairo-lang-plugins/src/test_data/derive
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ struct UnsupportedTrait {}
struct NonSimplePath {}

#[derive(Clone)]
extern type NotClonable;
extern type NotCloneable;

#[derive(Default)]
enum NoDefaultValue {
Expand Down Expand Up @@ -442,7 +442,7 @@ struct UnsupportedTrait {}
struct NonSimplePath {}

#[derive(Clone)]
extern type NotClonable;
extern type NotCloneable;

#[derive(Default)]
enum NoDefaultValue {
Expand Down