Skip to content

Commit 9ca08e9

Browse files
mikmooreKristofferC
authored andcommitted
Compat for Base.@nospecializeinfer (#55178)
This macro was added in v1.10 but was missing a compat notice. (cherry picked from commit 3290904)
1 parent 4b0f303 commit 9ca08e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

base/expr.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,9 @@ while it can not infer the concrete return type of it.
795795
Without the `@nospecializeinfer`, `f([1.0])` would infer the return type of `g` as `Float64`,
796796
indicating that inference ran for `g(::Vector{Float64})` despite the prohibition on
797797
specialized code generation.
798+
799+
!!! compat "Julia 1.10"
800+
Using `Base.@nospecializeinfer` requires Julia version 1.10.
798801
"""
799802
macro nospecializeinfer(ex)
800803
esc(isa(ex, Expr) ? pushmeta!(ex, :nospecializeinfer) : ex)

0 commit comments

Comments
 (0)