Skip to content

Commit d45d8cc

Browse files
committed
Add deprecation for 2-arg @boundscheck.
1 parent 6646136 commit d45d8cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

base/deprecated.jl

+8
Original file line numberDiff line numberDiff line change
@@ -936,3 +936,11 @@ end
936936

937937
#14335
938938
@deprecate super(T::DataType) supertype(T)
939+
940+
#14474
941+
macro boundscheck(yesno,blk)
942+
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"))
943+
if yesno === true
944+
:(@inbounds $(esc(blk)))
945+
end
946+
end

0 commit comments

Comments
 (0)