From 95486a2e3c75061292f2c680ab91c342a5370359 Mon Sep 17 00:00:00 2001 From: Oscar Smith Date: Sun, 30 Apr 2023 17:19:43 -0400 Subject: [PATCH] remove `@pure` (#85) --- src/base-traits.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base-traits.jl b/src/base-traits.jl index 7c45d9a..e85f5a9 100644 --- a/src/base-traits.jl +++ b/src/base-traits.jl @@ -15,15 +15,15 @@ export IsLeafType, IsConcrete, IsBits, IsImmutable, IsContiguous, IsIndexLinear, "Trait of all isbits-types" @traitdef IsBits{X} -Base.@pure _isbits(X) = isbitstype(X) +_isbits(X) = isbitstype(X) @traitimpl IsBits{X} <- _isbits(X) "Trait of all immutable types" @traitdef IsImmutable{X} if VERSION >= v"1.7.0-DEV.1279" - Base.@pure _isimmutable(X) = !(Base.ismutabletype(X)) + _isimmutable(X) = !(Base.ismutabletype(X)) else - Base.@pure _isimmutable(X) = !X.mutable + _isimmutable(X) = !X.mutable end @traitimpl IsImmutable{X} <- _isimmutable(X)