Base: avoid losing Method provenance in `@deprecate` (#61931)
Improves stacktraces and `methods(...)` queries for any Methods defined
through `@deprecate`:
```julia
julia> @deprecate foo(x::Int) rand(x)
foo (generic function with 1 method)
julia> methods(foo)
[1] foo(x::Int64)
@ REPL[3]:1
```
versus before:
```julia
julia> methods(foo)
[1] foo(x::Int64)
@ deprecated.jl:215
``` C
Cody Tapscott committed
10e3e21e1624684dda05546188ebae9a2535d3c1
Parent: 1000a7e
Committed by GitHub <noreply@github.com>
on 5/30/2026, 9:42:15 AM