Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assume :nothrow in iterating over tuples (#54330)
On master, ```julia julia> Base.infer_effects(iterate, (Tuple{Int,Int,Int}, Int)) (+c,+e,!n,+t,+s,+m,+u) ``` Since the indexing is only carried out for valid indices, it should be safe to mark this as `nothrow`. After this PR, ```julia julia> Base.infer_effects(iterate, (Tuple{Int,Int,Int}, Int)) (+c,+e,+n,+t,+s,+m,+u) ``` --------- Co-authored-by: Shuhei Kadowaki <[email protected]>
- Loading branch information