You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defining bindings (or potentially others) should parse 1u32 style integer literals correctly. This is important in proc macros, since quote! always adds the type to the end of an integer. Either we use LitInt from syn or IntegerLit from litrs.
error: attribute value must be integer
--> node-graph/graster-nodes/src/adjustments.rs:58:31
|
58 | #[spirv(descriptor_set = 0, binding = 1u32)] image_input:Image2d,
| ^^^^^^^^^^^^^^
BTW, there is new attribute parsing infra in rustc that is being migrated to...perhaps this should be pushed down into the compiler rather than as a normal proc macro?
Activity
[-](my bug report)[/-][+]Bindings fail to parse `1u32`[/+]LegNeato commentedon Aug 3, 2025
BTW, there is new attribute parsing infra in rustc that is being migrated to...perhaps this should be pushed down into the compiler rather than as a normal proc macro?