@@ -92,12 +92,6 @@ pub enum YaccGrammarErrorKind {
9292 UnknownEPP ( String ) ,
9393 ExpectedInput ( char ) ,
9494 InvalidYaccKind ,
95- InvalidYaccKindNamespace ,
96- InvalidActionKind ,
97- InvalidActionKindNamespace ,
98- InvalidGrmtoolsSectionEntry ,
99- DuplicateGrmtoolsSectionEntry ,
100- MissingGrmtoolsSection ,
10195}
10296
10397/// Any error from the Yacc parser returns an instance of this struct.
@@ -184,17 +178,7 @@ impl fmt::Display for YaccGrammarErrorKind {
184178 name
185179 )
186180 }
187- YaccGrammarErrorKind :: MissingGrmtoolsSection => "Missing '%grmtools' section" ,
188- YaccGrammarErrorKind :: DuplicateGrmtoolsSectionEntry => {
189- "Duplicate entry in %grmtools section"
190- }
191- YaccGrammarErrorKind :: InvalidGrmtoolsSectionEntry => {
192- "Invalid entry in %grmtools section"
193- }
194181 YaccGrammarErrorKind :: InvalidYaccKind => "Invalid yacc kind" ,
195- YaccGrammarErrorKind :: InvalidYaccKindNamespace => "Invalid yacc kind namespace" ,
196- YaccGrammarErrorKind :: InvalidActionKind => "Invalid action kind" ,
197- YaccGrammarErrorKind :: InvalidActionKindNamespace => "Invalid action kind namespace" ,
198182 } ;
199183 write ! ( f, "{}" , s)
200184 }
@@ -303,12 +287,7 @@ impl Spanned for YaccGrammarError {
303287 | YaccGrammarErrorKind :: UnknownRuleRef ( _)
304288 | YaccGrammarErrorKind :: UnknownToken ( _)
305289 | YaccGrammarErrorKind :: NoPrecForToken ( _)
306- | YaccGrammarErrorKind :: MissingGrmtoolsSection
307- | YaccGrammarErrorKind :: InvalidGrmtoolsSectionEntry
308290 | YaccGrammarErrorKind :: InvalidYaccKind
309- | YaccGrammarErrorKind :: InvalidYaccKindNamespace
310- | YaccGrammarErrorKind :: InvalidActionKind
311- | YaccGrammarErrorKind :: InvalidActionKindNamespace
312291 | YaccGrammarErrorKind :: ExpectedInput ( _)
313292 | YaccGrammarErrorKind :: UnknownEPP ( _) => SpansKind :: Error ,
314293 YaccGrammarErrorKind :: DuplicatePrecedence
@@ -318,7 +297,6 @@ impl Spanned for YaccGrammarError {
318297 | YaccGrammarErrorKind :: DuplicateImplicitTokensDeclaration
319298 | YaccGrammarErrorKind :: DuplicateStartDeclaration
320299 | YaccGrammarErrorKind :: DuplicateActiontypeDeclaration
321- | YaccGrammarErrorKind :: DuplicateGrmtoolsSectionEntry
322300 | YaccGrammarErrorKind :: DuplicateEPP => SpansKind :: DuplicationError ,
323301 }
324302 }
0 commit comments