We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 487cc3f + 43fe61e commit 10c5083Copy full SHA for 10c5083
1 file changed
lrpar/src/lib/ctbuilder.rs
@@ -1359,8 +1359,8 @@ where
1359
} else if pidx == grm.start_prod() {
1360
wrapper_fn_body.extend(quote!(unreachable!()));
1361
} else {
1362
- panic!(
1363
- "Production in rule '{}' must have an action body.",
+ unreachable!(
+ "Production in rule '{}' must have an action body, which should have been handled by gen_user_actions.",
1364
grm.rule_name_str(grm.prod_to_rule(pidx))
1365
);
1366
};
0 commit comments