Skip to content

Commit 10c5083

Browse files
authored
Merge pull request #628 from ratmice/unreachable_error
Note unreachable error
2 parents 487cc3f + 43fe61e commit 10c5083

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)