From 61d1ca8d1bf7cccbe8c182daa62e2ec554e90eb0 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Wed, 14 Jul 2021 15:48:03 -0400 Subject: [PATCH] increase specialization of `_totuple` (#41515) Helps #41512 (cherry picked from commit 468b1571b3676528feb1e44fd497b3bb9b55ef42) --- base/tuple.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/tuple.jl b/base/tuple.jl index dc777e7497598..421ada47c0c36 100644 --- a/base/tuple.jl +++ b/base/tuple.jl @@ -323,7 +323,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)