deprecated: Use the constructor's name as `funcsym` in `@deprecate` (#65166)
`@deprecate` passed `Core.Typeof(f).name.singletonname` to `depwarn` as the
name of the deprecated method. When `f` is a type, this accesses `.name` on
`Type{f}`, which is itself deprecated since #61915 and #62001. Calling a
deprecated constructor thus emitted the `Type.name` deprecation in addition
to its own, and threw the former under `--depwarn=error`.
That name was never the right one either: it used to be `:Type`, while the
methods of a constructor are named after the type being constructed. As a
result `firstcaller` never found the caller of a deprecated constructor, so
the warning was attributed to `Core`, and since the caller is part of the
`maxlog` id, all `@deprecate`d constructors shared a single one and only the
first such warning of a session was shown.
Derive the name the same way `jl_method_def` does instead.
Fixes #65165
Assisted-by: Claude Code (Fable 5.2)
Co-authored-by: Keno <Keno@users.noreply.github.com>