Skip to content

Commit

Permalink
Merge pull request #506 from FStarLang/protz_empty_structs
Browse files Browse the repository at this point in the history
Eliminate empty struct *definitions*
  • Loading branch information
msprotz authored Dec 20, 2024
2 parents 8b1ec11 + 4578377 commit e0fe023
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/DataTypes.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,10 @@ let remove_empty_structs files =
LidSet.empty
end)#visit_files () files in

let files = List.map (fun (f, decls) ->
f, List.filter (fun d -> not (LidSet.mem (lid_of_decl d) empty_structs)) decls
) files in

(object

inherit [_] map as super
Expand Down

0 comments on commit e0fe023

Please sign in to comment.