From 58f9a128095bb68973c443f3c09dfeaaf19b62b8 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Thu, 8 Jul 2021 13:18:13 -0400 Subject: [PATCH] increase specialization of `_totuple` Helps #41512 --- base/tuple.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/tuple.jl b/base/tuple.jl index cc4e52c930b80..ead8bc9919a86 100644 --- a/base/tuple.jl +++ b/base/tuple.jl @@ -322,7 +322,7 @@ function _totuple_err(@nospecialize T) throw(ArgumentError("too few elements for tuple type $T")) end -function _totuple(T, itr, s...) +function _totuple(::Type{T}, itr, s::Vararg{Any,N}) where {T,N} @_inline_meta y = iterate(itr, s...) y === nothing && _totuple_err(T)