Skip to content

Commit

Permalink
[multicore] switch regular expressions back to str
Browse files Browse the repository at this point in the history
Summary:
Re.Str is not thread safe. Str is (with caveats) so for now we need to switch.

https://discuss.ocaml.org/t/re-str-is-not-thread-safe/9425

Reviewed By: jvillard

Differential Revision:
D67016756

Privacy Context Container: L1208441

fbshipit-source-id: f57868975314b74533fb2a3a7aa21262fa5b328a
  • Loading branch information
ngorogiannis authored and facebook-github-bot committed Dec 10, 2024
1 parent 2a1ff41 commit 7f8fc07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions infer/src/integration/unit/SuppressionsTest.ml
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,9 @@ let%expect_test "match everything wildcard is invalid" =
let%expect_test "syntax error wildcard" =
t @@ Suppressions.parse_lines ["1+1 // @infer-ignore-every *"] ;
[%expect
{|
[%expect {|
RESULT: Empty
ERRORS: * not a valid issue_type / wildcard
; Invalid regex: * |}]
ERRORS: * not a valid issue_type / wildcard |}]
(** {2 matching} *)
Expand Down
3 changes: 0 additions & 3 deletions infer/src/istd/IStd.ml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ include Core
(* easier to write Unix than Core_unix *)
module Unix = Core_unix

(* use Re.Str instead of Str *)
module Str = Re.Str

(* we don't care about the _unix distinction *)
module Filename = struct
include Filename
Expand Down
1 change: 1 addition & 0 deletions infer/src/istd/dune
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
iter
mtime
re
str
yojson)
(preprocess
(pps ppx_compare ppx_hash ppx_sexp_conv)))
Expand Down

0 comments on commit 7f8fc07

Please sign in to comment.