From 6934f5ae91216fdcdb982c05e540418317352563 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Thu, 24 Oct 2024 15:34:42 -0400 Subject: [PATCH] test(naga): add missing variants to `DirectiveKind::iter` --- naga/src/front/wgsl/parse/directive.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/naga/src/front/wgsl/parse/directive.rs b/naga/src/front/wgsl/parse/directive.rs index 49a3cdde4..eb61ef6a4 100644 --- a/naga/src/front/wgsl/parse/directive.rs +++ b/naga/src/front/wgsl/parse/directive.rs @@ -45,7 +45,9 @@ impl DirectiveKind { fn iter() -> impl Iterator { use strum::IntoEnumIterator; - UnimplementedDirectiveKind::iter().map(Self::Unimplemented) + [Self::Enable, Self::Requires] + .into_iter() + .chain(UnimplementedDirectiveKind::iter().map(Self::Unimplemented)) } }