Skip to content

Commit 226490c

Browse files
committed
Switch from expect to allow
Trouble with expect, but allow is already used anyway
1 parent 0507b4d commit 226490c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

naga/src/back/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ pub type NeedBakeExpressions = crate::FastHashSet<crate::Handle<crate::Expressio
4747
/// [`Expression`]: crate::Expression
4848
/// [`Handle`]: crate::Handle
4949
#[cfg_attr(
50-
not(any(hlsl_out, msl_out, spv_out, glsl_out)),
51-
expect(
50+
not(any(glsl_out, hlsl_out, msl_out, wgsl_out)),
51+
allow(
5252
dead_code,
53-
reason = "only used with any of the aforementioned configurations"
53+
reason = "shared helpers can be dead if none of the enabled backends need it"
5454
)
5555
)]
5656
struct Baked(crate::Handle<crate::Expression>);

0 commit comments

Comments
 (0)