Skip to content

Commit

Permalink
Merge pull request #957 from hacspec/fix-variant-renaming-in-struct-b…
Browse files Browse the repository at this point in the history
…undling

Ignore structs in variants renaming for bundling.
  • Loading branch information
W95Psp authored Oct 3, 2024
2 parents 52d7d71 + b21e13b commit 4a023d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/lib/dependencies.ml
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ module Make (F : Features.T) = struct
in
let variants_renamings (previous_name, new_name) =
match from_ident previous_name with
| Some { v = Type { variants; _ }; _ } ->
| Some { v = Type { variants; is_struct = false; _ }; _ } ->
List.map variants ~f:(fun { name; _ } ->
( name,
Concrete_ident.Create.move_under ~new_parent:new_name name ))
Expand Down

0 comments on commit 4a023d0

Please sign in to comment.