Skip to content

Commit

Permalink
Remove hax_skip as it is unused.
Browse files Browse the repository at this point in the history
  • Loading branch information
maximebuyse committed Dec 12, 2024
1 parent a22203a commit 9360aeb
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions engine/lib/import_thir.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1330,17 +1330,9 @@ let is_automatically_derived (attrs : Thir.attribute list) =
| _ -> false)
attrs

let is_hax_skip (attrs : Thir.attribute list) =
List.exists
~f:(function
| { kind = Normal { item = { path; _ }; _ }; _ } ->
String.equal path "_hax::skip"
| _ -> false)
attrs

let should_skip (attrs : Thir.item_attributes) =
let attrs = attrs.attributes @ attrs.parent_attributes in
is_hax_skip attrs || is_automatically_derived attrs
is_automatically_derived attrs

(** Converts a generic parameter to a generic value. This assumes the
parameter is bound. *)
Expand Down

0 comments on commit 9360aeb

Please sign in to comment.