diff --git a/src/SOneTo.jl b/src/SOneTo.jl index b3a207b8..f610f84b 100644 --- a/src/SOneTo.jl +++ b/src/SOneTo.jl @@ -24,12 +24,7 @@ Base.length(s::SOneTo{n}) where {n} = n # The axes of a Slice'd SOneTo use the SOneTo itself Base.axes(S::Base.Slice{<:SOneTo}) = (S.indices,) Base.unsafe_indices(S::Base.Slice{<:SOneTo}) = (S.indices,) -Base.axes1(S::Base.Slice{<:SOneTo}) = S.indices -@propagate_inbounds function Base.getindex(s::SOneTo, i::Int) - @boundscheck checkbounds(s, i) - return i -end @propagate_inbounds function Base.getindex(s::SOneTo, s2::SOneTo) @boundscheck checkbounds(s, s2) return s2 diff --git a/test/matrix_multiply_add.jl b/test/matrix_multiply_add.jl index 7d5bd8c7..7125352b 100644 --- a/test/matrix_multiply_add.jl +++ b/test/matrix_multiply_add.jl @@ -97,8 +97,8 @@ function test_multiply_add(N1,N2,ArrayType=MArray) if !(ArrayType <: SizedArray) @test_noalloc mul!(c,A,b) else - mul!(c,A,b) - @test_broken(@allocated(mul!(c,A,b)) == 0) + mul!(c,A,b) # Precompilation? + @test_noalloc mul!(c,A,b) end expected_transpose_allocs = 0 bmark = @benchmark mul!($c,$A,$b,$α,$β) samples=10 evals=10