Skip to content

Commit

Permalink
Compat for Base.@nospecializeinfer (#55178)
Browse files Browse the repository at this point in the history
This macro was added in v1.10 but was missing a compat notice.
  • Loading branch information
mikmoore authored Jul 20, 2024
1 parent 500288c commit 3290904
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/expr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,9 @@ while it can not infer the concrete return type of it.
Without the `@nospecializeinfer`, `f([1.0])` would infer the return type of `g` as `Float64`,
indicating that inference ran for `g(::Vector{Float64})` despite the prohibition on
specialized code generation.
!!! compat "Julia 1.10"
Using `Base.@nospecializeinfer` requires Julia version 1.10.
"""
macro nospecializeinfer(ex)
esc(isa(ex, Expr) ? pushmeta!(ex, :nospecializeinfer) : ex)
Expand Down

0 comments on commit 3290904

Please sign in to comment.