refactor(naga): resolve!(…): de-dupe $expr usage (#7787)

This commit is contained in:
Erich Gubler 2025-06-12 00:33:37 +09:00 committed by GitHub
parent 5a7af54619
commit 9659838a1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,8 +71,9 @@ macro_rules! resolve_inner_binary {
/// [`TypeResolution`]: proc::TypeResolution
macro_rules! resolve {
($ctx:ident, $expr:expr) => {{
$ctx.grow_types($expr)?;
&$ctx.typifier()[$expr]
let expr = $expr;
$ctx.grow_types(expr)?;
&$ctx.typifier()[expr]
}};
}
pub(super) use resolve;