From 1566bb1dddceca1c80322bb2facb22e0ee2b14df Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Wed, 17 Dec 2025 17:28:11 +0100 Subject: [PATCH] Delete some functions already defined in Base This fixes some invalidations. --- src/SOneTo.jl | 5 ----- test/matrix_multiply_add.jl | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/SOneTo.jl b/src/SOneTo.jl index b3a207b83..f610f84bb 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 7d5bd8c7b..7125352bf 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