From 94f5b3dceb21772f592690c404eea9bee83a4675 Mon Sep 17 00:00:00 2001 From: Katharine Hyatt Date: Mon, 13 Jul 2026 22:47:31 +0200 Subject: [PATCH] Re-enable coverage and fix some Const issues --- ext/VectorInterfaceEnzymeExt.jl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ext/VectorInterfaceEnzymeExt.jl b/ext/VectorInterfaceEnzymeExt.jl index a61c775..5123df2 100644 --- a/ext/VectorInterfaceEnzymeExt.jl +++ b/ext/VectorInterfaceEnzymeExt.jl @@ -1,7 +1,5 @@ module VectorInterfaceEnzymeExt -# COV_EXCL_START -# Enzyme rules aren't reachable by coverage using VectorInterface using Enzyme using Enzyme.EnzymeCore @@ -57,7 +55,7 @@ function EnzymeRules.reverse( else nothing end - scale!(C.dval, conj(αval)) + !isa(C, Const) && scale!(C.dval, conj(αval)) return (nothing, Δα) end @@ -121,7 +119,7 @@ function EnzymeRules.reverse( else nothing end - zerovector!(C.dval) + !isa(C, Const) && zerovector!(C.dval) return (nothing, nothing, Δα) end @@ -292,6 +290,5 @@ function EnzymeRules.forward( return nothing end end -# COV_EXCL_STOP end