Skip to content

Commit 43fe61e

Browse files
committed
Note unreachable error
1 parent c5221e5 commit 43fe61e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lrpar/src/lib/ctbuilder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,8 +1359,8 @@ where
13591359
} else if pidx == grm.start_prod() {
13601360
wrapper_fn_body.extend(quote!(unreachable!()));
13611361
} else {
1362-
panic!(
1363-
"Production in rule '{}' must have an action body.",
1362+
unreachable!(
1363+
"Production in rule '{}' must have an action body, which should have been handled by gen_user_actions.",
13641364
grm.rule_name_str(grm.prod_to_rule(pidx))
13651365
);
13661366
};

0 commit comments

Comments
 (0)