Skip to content

Commit cd88535

Browse files
committed
News and compat annotation for #29178 (Future.copy! to Base).
1 parent 2ab7d69 commit cd88535

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Standard library changes
7070
* New `edit(m::Module)` method which opens the main source file for module `m` ([#29636]).
7171
* `Base.@kwdef` can now be used for parametric structs, and for structs with supertypes ([#29316]).
7272
* `merge(::NamedTuple, ::NamedTuple...)` can now be used with more than 2 `NamedTuple`s ([#29259]).
73+
* `Future.copy!` has been moved to `Base` ([#29178]).
7374

7475
Compiler/Runtime improvements
7576
-----------------------------

base/abstractarray.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,10 @@ If `dst` and `src` are of the same type, `dst == src` should hold after
647647
the call. If `dst` and `src` are multidimensional arrays, they must have
648648
equal [`axes`](@ref).
649649
See also [`copyto!`](@ref).
650+
651+
!!! compat "Julia 1.1"
652+
This method requires at least Julia 1.1. In Julia 1.0 this method
653+
is available from the `Future` standard library as `Future.copy!`.
650654
"""
651655
copy!(dst::AbstractVector, src::AbstractVector) = append!(empty!(dst), src)
652656

stdlib/Future/src/Future.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ using Random
1515
Future.copy!(dst, src) -> dst
1616
1717
Copy `src` into `dst`.
18-
This function has now been moved into `Base`, consider using `copy!(dst, src)` instead.
18+
19+
!!! compat "Julia 1.1"
20+
This function has moved to `Base` with Julia 1.1, consider using `copy!(dst, src)` instead.
21+
`Future.copy!` will be deprecated in the future.
1922
"""
2023
copy!(dst::AbstractSet, src::AbstractSet) = Base.copy!(dst, src)
2124
copy!(dst::AbstractDict, src::AbstractDict) = Base.copy!(dst, src)

0 commit comments

Comments
 (0)