Skip to content

Commit 6c9f5d1

Browse files
committed
Remove unsafe_pure from Val
1 parent dcd9e56 commit 6c9f5d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

base/essentials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ julia> f(Val(true))
700700
struct Val{x}
701701
end
702702

703-
Val(x) = (@_unsafe_pure_meta; Val{x}())
703+
Val(x) = Val{x}()
704704

705705
"""
706706
invokelatest(f, args...; kwargs...)

doc/src/manual/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ for cases where you don't need a more elaborate hierarchy.
13831383
julia> struct Val{x}
13841384
end
13851385
1386-
julia> Base.@unsafe_pure Val(x) = Val{x}()
1386+
julia> Val(x) = Val{x}()
13871387
Val
13881388
```
13891389

0 commit comments

Comments
 (0)