Skip to content

Commit 8c250b4

Browse files
authored
Don't use @propagate_inbounds_meta (#162)
1 parent 88d379c commit 8c250b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ArrayLayouts.jl

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using LinearAlgebra.BLAS
55

66
using Base: AbstractCartesianIndex, OneTo, oneto, RangeIndex, ReinterpretArray, ReshapedArray,
77
Slice, tuple_type_tail, unalias,
8-
@propagate_inbounds, @_propagate_inbounds_meta
8+
@propagate_inbounds
99

1010
import Base: axes, size, length, eltype, ndims, first, last, diff, isempty, union, sort!,
1111
==, *, +, -, /, \, copy, copyto!, similar, getproperty, getindex, strides,
@@ -132,8 +132,7 @@ copy(A::SubArray{<:Any,N,<:LayoutArray}) where N = sub_materialize(A)
132132
copy(A::SubArray{<:Any,N,<:AdjOrTrans{<:Any,<:LayoutArray}}) where N = sub_materialize(A)
133133

134134
@inline layout_getindex(A, I...) = sub_materialize(view(A, I...))
135-
function layout_getindex(A::AbstractArray, k::Int...)
136-
@_propagate_inbounds_meta
135+
@propagate_inbounds function layout_getindex(A::AbstractArray, k::Int...)
137136
Base.error_if_canonical_getindex(IndexStyle(A), A, k...)
138137
Base._getindex(IndexStyle(A), A, k...)
139138
end

0 commit comments

Comments
 (0)