From d3f4cc4d235ed89b6c8b86ea0c450e65960513cb Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Wed, 13 Nov 2024 06:57:02 -0500 Subject: [PATCH] fixup! Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com> --- naga/src/front/wgsl/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naga/src/front/wgsl/error.rs b/naga/src/front/wgsl/error.rs index e5e0abe734..0220bfde5a 100644 --- a/naga/src/front/wgsl/error.rs +++ b/naga/src/front/wgsl/error.rs @@ -1095,7 +1095,7 @@ impl<'a> Error<'a> { .map(|span| (span, "".into())) .collect(), notes: vec![ - "`@diagnostic(…)` attributes are only permitted on `fn`s and statements." + "`@diagnostic(…)` attributes are only permitted on `fn`s, some statements and switch/loop body." .into(), "These attributes are well-formed, you likely just need to move them.".into(), ],