Skip to content

Commit

Permalink
delete unnecessary vararg missing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko authored Jan 18, 2025
1 parent 319082c commit 68013f3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions base/tuple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -681,11 +681,7 @@ any(::typeof(identity), x::Tuple{Vararg{Bool}}) = _any_tuple_vararg_bool(x)
all(::typeof(identity), x::Tuple{Bool}) = _all_tuple_vararg_bool(x)
any(::typeof(identity), x::Tuple{Bool}) = _any_tuple_vararg_bool(x)

# `identity` and a homogeneous tuple of `Missing`
all(::typeof(identity), ::Tuple{Missing, Vararg{Missing}}) = missing
any(::typeof(identity), ::Tuple{Missing, Vararg{Missing}}) = missing

# `identity` and a homogeneous tuple of `Missing`: disambiguate
# `identity` and a singleton tuple of `Missing`
all(::typeof(identity), ::Tuple{Missing}) = missing
any(::typeof(identity), ::Tuple{Missing}) = missing

Expand Down

0 comments on commit 68013f3

Please sign in to comment.