diff --git a/base/deprecated.jl b/base/deprecated.jl index 3a8e537d2d220..512ae8cdafb5c 100644 --- a/base/deprecated.jl +++ b/base/deprecated.jl @@ -936,3 +936,11 @@ end #14335 @deprecate super(T::DataType) supertype(T) + +#14474 +macro boundscheck(yesno,blk) + depwarn("The meaning of `@boundscheck` has changed. It now indicates that the provided code block performs bounds checking, and may be elided when inbounds.", symbol("@boundscheck")) + if yesno === true + :(@inbounds $(esc(blk))) + end +end