Skip to content

Commit 9235f44

Browse files
Import @boundscheck and @inbounds from Base
1 parent e2d543a commit 9235f44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/iterators.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using .Base:
1212
@inline, Pair, AbstractDict, IndexLinear, IndexCartesian, IndexStyle, AbstractVector, Vector,
1313
tail, tuple_type_head, tuple_type_tail, tuple_type_cons, SizeUnknown, HasLength, HasShape,
1414
IsInfinite, EltypeUnknown, HasEltype, OneTo, @propagate_inbounds, Generator, AbstractRange,
15-
LinearIndices, (:), |, +, -, !==, !, <=, <, missing, map, any
15+
LinearIndices, (:), |, +, -, !==, !, <=, <, missing, map, any, @boundscheck, @inbounds
1616

1717
import .Base:
1818
first, last,
@@ -1100,7 +1100,7 @@ length(s::Stateful) = length(s.itr) - s.taken
11001100
Returns the one and only element of collection `x`, and throws an `ArgumentError` if the
11011101
collection has zero or multiple elements.
11021102
"""
1103-
Base.@propagate_inbounds function only(x)
1103+
@propagate_inbounds function only(x)
11041104
i = iterate(x)
11051105
@boundscheck if i === nothing
11061106
throw(ArgumentError("Collection is empty, must contain exactly 1 element"))

0 commit comments

Comments
 (0)