File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
crates/formality-core/src Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -178,15 +178,20 @@ macro_rules! push_rules {
178
178
) => {
179
179
// Found the conclusion.
180
180
{
181
- // give the user a type error if the name they gave
182
- // in the conclusion is not the same as the name of the
183
- // function
184
- #[ allow( dead_code) ]
185
- struct WrongJudgmentNameInConclusion ;
186
- const _: WrongJudgmentNameInConclusion = {
187
- let $judgment_name = WrongJudgmentNameInConclusion ;
181
+ $crate:: respan!(
188
182
$conclusion_name
189
- } ;
183
+ (
184
+ // give the user a type error if the name they gave
185
+ // in the conclusion is not the same as the name of the
186
+ // function
187
+ #[ allow( dead_code) ]
188
+ struct WrongJudgmentNameInConclusion ;
189
+ const _: WrongJudgmentNameInConclusion = {
190
+ let $judgment_name = WrongJudgmentNameInConclusion ;
191
+ $conclusion_name
192
+ } ;
193
+ )
194
+ ) ;
190
195
191
196
if let Some ( __JudgmentStruct( $( $input_names) ,* ) ) = Some ( $input_value) {
192
197
$crate:: push_rules!( @match
You can’t perform that action at this time.
0 commit comments