mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
refactor(naga): resolve!(…): de-dupe $expr usage (#7787)
This commit is contained in:
parent
5a7af54619
commit
9659838a1b
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user