Skip to content

Commit 0c28483

Browse files
authored
Add compat entry for @deprecated (JuliaLang#35427)
* Add compat entry for at-deprecated * Mention that Pkg.test still prints deprecation warnings
1 parent ddf2f61 commit 0c28483

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

NEWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ Command-line option changes
7474
---------------------------
7575

7676
* Deprecation warnings are no longer shown by default. i.e. if the `--depwarn=...` flag is
77-
not passed it defaults to `--depwarn=no`. ([#35362]).
77+
not passed it defaults to `--depwarn=no`. The warnings are printed from tests run by
78+
`Pkg.test()`. ([#35362]).
7879

7980
* Color now defaults to on when stdout and stderr are TTYs ([#34347])
8081

base/deprecated.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ The first argument `old` is the signature of the deprecated method, the second o
2121
`new` is the call which replaces it. `@deprecate` exports `old` unless the optional
2222
third argument is `false`.
2323
24+
!!! compat "Julia 1.5"
25+
As of Julia 1.5, functions defined by `@deprecate` do not print warning inside normal
26+
`julia` program as the defualt value of `--depwarn` option is `no`. The warnings
27+
are printed from tests run by `Pkg.test()`.
28+
2429
# Examples
2530
```jldoctest
2631
julia> @deprecate old(x) new(x)

0 commit comments

Comments
 (0)