Skip to content

Commit cc9f619

Browse files
authored
Remove overload for 1.12-rc1 and higher (#784)
1 parent 0107acd commit cc9f619

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/array.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ end
302302
Adapt.adapt_storage(::Runtime.Adaptor, x::ROCArray{T,N}) where {T,N} =
303303
convert(ROCDeviceArray{T,N,AS.Global}, x)
304304

305-
if VERSION v"1.12-"
306-
# TODO is this OK to do this?
305+
if v"1.12.0-beta1" VERSION < v"1.12.0-rc1"
307306
# Use type inference for x^p instead of `promote` which does `x * x`.
308307
function Base.to_power_type(x::AnyROCArray)
309308
convert(Base._return_type(*, Tuple{typeof(x), typeof(x)}), x)

0 commit comments

Comments
 (0)