Skip to content

Commit d6680cf

Browse files
mikmoorepull[bot]
authored andcommitted
Compat for Base.@nospecializeinfer (#55178)
This macro was added in v1.10 but was missing a compat notice.
1 parent 7d7cc06 commit d6680cf

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
@@ -850,6 +850,9 @@ while it can not infer the concrete return type of it.
850850
Without the `@nospecializeinfer`, `f([1.0])` would infer the return type of `g` as `Float64`,
851851
indicating that inference ran for `g(::Vector{Float64})` despite the prohibition on
852852
specialized code generation.
853+
854+
!!! compat "Julia 1.10"
855+
Using `Base.@nospecializeinfer` requires Julia version 1.10.
853856
"""
854857
macro nospecializeinfer(ex)
855858
esc(isa(ex, Expr) ? pushmeta!(ex, :nospecializeinfer) : ex)

0 commit comments

Comments
 (0)