Skip to content

Commit 907afec

Browse files
Sacha0ararslan
authored andcommitted
Add NEWS.md entry for promote_op(::Type, Ts...) deprecation (JuliaLang#18642). (JuliaLang#21931)
1 parent a72aad4 commit 907afec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,11 @@ Deprecated or removed
580580
* The zero-argument constructor `MersenneTwister()` has been
581581
deprecated in favor of the explicit `MersenneTwister(0)` ([#16984]).
582582
583+
* `Base.promote_type(op::Type, Ts::Type...)` has been removed as part of an overhaul
584+
of `broadcast`'s promotion mechanism. If you need the functionality of that
585+
`Base.promote_type` method, consider defining it locally via
586+
`Core.Inference.return_type(op, Tuple{Ts...})` ([#18642]).
587+
583588
* `bitbroadcast` has been deprecated in favor of `broadcast`, which now produces a
584589
`BitArray` instead of `Array{Bool}` for functions yielding a boolean result ([#19771]).
585590
@@ -637,6 +642,7 @@ Command-line option changes
637642
[#18473]: https://github.com/JuliaLang/julia/issues/18473
638643
[#18558]: https://github.com/JuliaLang/julia/issues/18558
639644
[#18628]: https://github.com/JuliaLang/julia/issues/18628
645+
[#18642]: https://github.com/JuliaLang/julia/issues/18642
640646
[#18644]: https://github.com/JuliaLang/julia/issues/18644
641647
[#18660]: https://github.com/JuliaLang/julia/issues/18660
642648
[#18690]: https://github.com/JuliaLang/julia/issues/18690

0 commit comments

Comments
 (0)