File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/formality-core/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ macro_rules! push_rules {
159
159
} ;
160
160
161
161
if let Some ( __JudgmentStruct( $( $input_names) ,* ) ) = Some ( $input_value) {
162
- $crate:: push_rules!( @match inputs( $( $input_names) * ) patterns( $( $patterns) * ) args( $judgment_name; $n; $v; $output; $( $m) * ) ) ;
162
+ $crate:: push_rules!( @match inputs( $( $input_names) * ) patterns( $( $patterns) * ) args( @body ( $judgment_name; $n; $v; $output) ; $( $m) * ) ) ;
163
163
}
164
164
}
165
165
} ;
@@ -172,7 +172,7 @@ macro_rules! push_rules {
172
172
// Matching phase: peel off the patterns one by one and match them against the values
173
173
// extracted from the input. For anything that is not an identity pattern, invoke `downcast`.
174
174
175
- ( @match inputs( ) patterns( ) args( $judgment_name: ident; $n: literal; $v: expr; $output: expr; $( $m: tt) * ) ) => {
175
+ ( @match inputs( ) patterns( ) args( @body ( $judgment_name: ident; $n: literal; $v: expr; $output: expr) ; $( $m: tt) * ) ) => {
176
176
tracing:: trace_span!( "matched rule" , rule = $n, judgment = stringify!( $judgment_name) ) . in_scope( || {
177
177
$crate:: push_rules!( @body ( $judgment_name, $n, $v, $output) $( $m) * ) ;
178
178
} ) ;
You can’t perform that action at this time.
0 commit comments