diff --git a/base/abstractarray.jl b/base/abstractarray.jl index e2fa45a58c88e..d89102cc6a98a 100644 --- a/base/abstractarray.jl +++ b/base/abstractarray.jl @@ -1288,7 +1288,7 @@ end # To avoid invalidations from multidimensional.jl: getindex(A::Array, i1::Union{Integer, CartesianIndex}, I::Union{Integer, CartesianIndex}...) @propagate_inbounds getindex(A::Array, i1::Integer, I::Integer...) = A[to_indices(A, (i1, I...))...] -unsafe_getindex(A::AbstractArray, I...) = @inbounds getindex(A, I...) +@inline unsafe_getindex(A::AbstractArray, I...) = @inbounds getindex(A, I...) struct CanonicalIndexError <: Exception func::String