Skip to content

Commit e7c817d

Browse files
namespace.
1 parent b583e74 commit e7c817d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/ArrayInterfaceCore/src/ArrayInterfaceCore.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ can_setindex(::Type{<:AbstractDict}) = true
134134
can_setindex(::Type{<:Base.ImmutableDict}) = false
135135
can_setindex(@nospecialize T::Type{<:Tuple}) = false
136136
can_setindex(@nospecialize T::Type{<:NamedTuple}) = false
137-
can_setindex(::Type{<:Base.Pairs{<:Any,<:Any,P}}) where {P} = can_setindex(P)
137+
can_setindex(::Type{<:Base.Iterators.Pairs{<:Any,<:Any,P}}) where {P} = can_setindex(P)
138138

139139
"""
140140
aos_to_soa(x)
@@ -408,13 +408,13 @@ end
408408
409409
Returns a new instance of `collection` with the item at the given `index` removed.
410410
"""
411-
@propagate_inbounds function deleteat(collection::AbstractVector, index)
411+
Base.@propagate_inbounds function deleteat(collection::AbstractVector, index)
412412
@boundscheck if !checkindex(Bool, eachindex(collection), index)
413413
throw(BoundsError(collection, index))
414414
end
415415
return unsafe_deleteat(collection, index)
416416
end
417-
@propagate_inbounds function deleteat(collection::Tuple{Vararg{Any,N}}, index) where {N}
417+
Base.@propagate_inbounds function deleteat(collection::Tuple{Vararg{Any,N}}, index) where {N}
418418
@boundscheck if !checkindex(Bool, StaticInt{1}():StaticInt{N}(), index)
419419
throw(BoundsError(collection, index))
420420
end
@@ -573,7 +573,7 @@ Base.firstindex(i::Union{BidiagonalIndex,TridiagonalIndex}) = 1
573573
Base.lastindex(i::Union{BidiagonalIndex,TridiagonalIndex}) = i.count
574574
Base.length(i::Union{BidiagonalIndex,TridiagonalIndex}) = lastindex(i)
575575

576-
@propagate_inbounds function Base.getindex(ind::BidiagonalIndex, i::Int)
576+
Base.@propagate_inbounds function Base.getindex(ind::BidiagonalIndex, i::Int)
577577
@boundscheck 1 <= i <= ind.count || throw(BoundsError(ind, i))
578578
if ind.isup
579579
ii = i + 1
@@ -583,7 +583,7 @@ Base.length(i::Union{BidiagonalIndex,TridiagonalIndex}) = lastindex(i)
583583
convert(Int, floor(ii / 2))
584584
end
585585

586-
@propagate_inbounds function Base.getindex(ind::TridiagonalIndex, i::Int)
586+
Base.@propagate_inbounds function Base.getindex(ind::TridiagonalIndex, i::Int)
587587
@boundscheck 1 <= i <= ind.count || throw(BoundsError(ind, i))
588588
offsetu = ind.isrow ? 0 : 1
589589
offsetl = ind.isrow ? 1 : 0

0 commit comments

Comments
 (0)