Skip to content

Commit cbbfc68

Browse files
authored
Silence the at-pure deprecation warning. (#48701)
1 parent c110f7c commit cbbfc68

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

base/deprecated.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,8 @@ helping for type inference.
378378
In Julia 1.8 and higher, it is favorable to use [`@assume_effects`](@ref) instead of `@pure`.
379379
This is because `@assume_effects` allows a finer grained control over Julia's purity
380380
modeling and the effect system enables a wider range of optimizations.
381-
382-
!!! note
383-
In Julia 1.10 this is deprecated in favor of [`@assume_effects`](@ref).
384-
Specifically, `@assume_effects :foldable` provides similar guarentees.
385381
"""
386382
macro pure(ex)
387-
f, l = __source__.file, __source__.line
388-
@warn "`Base.@pure ex` at $f:$l is deprecated, use `Base.@assume_effects :foldable ex` instead."
389383
return esc(:(Base.@assume_effects :foldable $ex))
390384
end
391385

0 commit comments

Comments
 (0)