Skip to content

Commit

Permalink
Track check_unsafe_impls.jl as a dependency (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf authored Apr 15, 2022
1 parent a5a1689 commit 59ebf87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/maybe_use_unsafe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ function is_unsafe_usable(; out = stderr, stdout = out, stderr = out)
end

const USE_UNSAFE = is_unsafe_usable(; out = devnull)
include_dependency("check_unsafe_impls.jl")

@static if USE_UNSAFE
PreludeDicts.modify!(f::F, dict::Dict, k) where {F} = modify_unsafe!(f, dict, k)
PreludeDicts.trysetwith!(factory::F, dict::Dict, k) where {F} =
Expand Down

0 comments on commit 59ebf87

Please sign in to comment.