Skip to content

Commit 6da76e6

Browse files
committed
Remove "hashtag_mode" preference
As requested by @oscardssmith.
1 parent 0b0989f commit 6da76e6

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/config.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Base.eltype(cfg::AbstractConfig) = eltype(typeof(cfg))
109109
elseif style === :type
110110
return Tag(f, X)
111111
elseif style === nothing
112-
if HASHTAG_MODE_ENABLED
112+
if VERSION v"1.11"
113113
return HashTag(f, X)
114114
else
115115
return Tag(f, X)

src/prelude.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
const NANSAFE_MODE_ENABLED = @load_preference("nansafe_mode", false)
22
const DEFAULT_CHUNK_THRESHOLD = @load_preference("default_chunk_threshold", 12)
33

4-
# On ≤1.10, the hash of a type cannot be computed at compile-time,
5-
# making `HashTag(...)` type-unstable, so `Tag(...)` is left as
6-
# as the default.
7-
const HASHTAG_MODE_ENABLED = @load_preference("hashtag_mode", VERSION v"1.11")
8-
94
const AMBIGUOUS_TYPES = (AbstractFloat, Irrational, Integer, Rational, Real, RoundingMode)
105

116
const UNARY_PREDICATES = Symbol[:isinf, :isnan, :isfinite, :iseven, :isodd, :isreal, :isinteger]

0 commit comments

Comments
 (0)