Skip to content

Commit 5f05d1d

Browse files
authored
Merge pull request #584 from ratmice/GrammarAST_non_exhaustive
Make `GrammarAST` non-exhaustive.
2 parents 1079e24 + 2e6223c commit 5f05d1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cfgrammar/src/lib/yacc/ast.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ impl FromStr for ASTWithValidityInfo {
111111
/// `complete_and_validate` must be called exactly once in order to finish the set-up. At that
112112
/// point, any further mutations made to the struct lead to undefined behaviour.
113113
#[derive(Debug)]
114+
#[non_exhaustive]
114115
pub struct GrammarAST {
115116
pub start: Option<(String, Span)>,
116117
// map from a rule name to indexes into `prods`

0 commit comments

Comments
 (0)