From 755cd4311ec74eaf843147dfc02b053a06ab0241 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 11 Aug 2022 15:24:48 -0500 Subject: [PATCH] Update max tuple size in component api fuzzing (#4675) Fixes a build failure on #4673 where tuples of length 16 don't implement `Debug` from the standard library. --- crates/misc/component-fuzz-util/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/misc/component-fuzz-util/src/lib.rs b/crates/misc/component-fuzz-util/src/lib.rs index da4e2de788..8c38134425 100644 --- a/crates/misc/component-fuzz-util/src/lib.rs +++ b/crates/misc/component-fuzz-util/src/lib.rs @@ -123,8 +123,9 @@ pub enum Type { Record(VecInRange), // Tuples can only have up to 16 type parameters in wasmtime right now for - // the static API. - Tuple(VecInRange), + // the static API, but the standard library only supports `Debug` up to 11 + // elements, so compromise at an even 10. + Tuple(VecInRange), // Like records, allow a good number of variants, but variants require at // least one case.