Skip to content

Commit 6541d1b

Browse files
putianyi889jishnub
andauthored
Make popat! support @inbounds (#56323)
Co-authored-by: Jishnu Bhattacharya <[email protected]>
1 parent a005c07 commit 6541d1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

base/array.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,6 +1647,7 @@ ERROR: BoundsError: attempt to access 3-element Vector{Int64} at index [4]
16471647
```
16481648
"""
16491649
function popat!(a::Vector, i::Integer)
1650+
@_propagate_inbounds_meta
16501651
x = a[i]
16511652
_deleteat!(a, i, 1)
16521653
x

0 commit comments

Comments
 (0)