@@ -970,54 +970,31 @@ pub mod peg {
970
970
#![ allow( non_snake_case, unused, clippy:: redundant_closure_call) ]
971
971
match {
972
972
let str_start = __pos;
973
- match {
974
- let __choice_res =
975
- match :: peg:: ParseLiteral :: parse_string_literal ( __input, __pos, "pub" ) {
976
- :: peg:: RuleResult :: Matched ( __pos, __val) => {
977
- let __seq_res = match match __parse_PAREN_GROUP (
978
- __input,
979
- __state,
980
- __err_state,
981
- __pos,
982
- ) {
983
- :: peg:: RuleResult :: Matched ( pos, _) => {
984
- :: peg:: RuleResult :: Matched ( pos, ( ) )
985
- }
986
- :: peg:: RuleResult :: Failed => :: peg:: RuleResult :: Failed ,
987
- } {
988
- :: peg:: RuleResult :: Matched ( __newpos, _) => {
989
- :: peg:: RuleResult :: Matched ( __newpos, ( ) )
990
- }
991
- :: peg:: RuleResult :: Failed => :: peg:: RuleResult :: Matched ( __pos, ( ) ) ,
992
- } ;
993
- match __seq_res {
994
- :: peg:: RuleResult :: Matched ( __pos, _) => {
995
- :: peg:: RuleResult :: Matched ( __pos, ( ) )
996
- }
997
- :: peg:: RuleResult :: Failed => :: peg:: RuleResult :: Failed ,
998
- }
999
- }
1000
- :: peg:: RuleResult :: Failed => {
1001
- __err_state. mark_failure ( __pos, "\" pub\" " ) ;
1002
- :: peg:: RuleResult :: Failed
1003
- }
1004
- } ;
1005
- match __choice_res {
1006
- :: peg:: RuleResult :: Matched ( __pos, __value) => {
1007
- :: peg:: RuleResult :: Matched ( __pos, __value)
1008
- }
1009
- :: peg:: RuleResult :: Failed => {
1010
- match :: peg:: ParseLiteral :: parse_string_literal ( __input, __pos, "crate" ) {
1011
- :: peg:: RuleResult :: Matched ( __pos, __val) => {
1012
- :: peg:: RuleResult :: Matched ( __pos, __val)
973
+ match match :: peg:: ParseLiteral :: parse_string_literal ( __input, __pos, "pub" ) {
974
+ :: peg:: RuleResult :: Matched ( __pos, __val) => {
975
+ let __seq_res =
976
+ match match __parse_PAREN_GROUP ( __input, __state, __err_state, __pos) {
977
+ :: peg:: RuleResult :: Matched ( pos, _) => {
978
+ :: peg:: RuleResult :: Matched ( pos, ( ) )
1013
979
}
1014
- :: peg:: RuleResult :: Failed => {
1015
- __err_state. mark_failure ( __pos, "\" crate\" " ) ;
1016
- :: peg:: RuleResult :: Failed
980
+ :: peg:: RuleResult :: Failed => :: peg:: RuleResult :: Failed ,
981
+ } {
982
+ :: peg:: RuleResult :: Matched ( __newpos, _) => {
983
+ :: peg:: RuleResult :: Matched ( __newpos, ( ) )
1017
984
}
985
+ :: peg:: RuleResult :: Failed => :: peg:: RuleResult :: Matched ( __pos, ( ) ) ,
986
+ } ;
987
+ match __seq_res {
988
+ :: peg:: RuleResult :: Matched ( __pos, _) => {
989
+ :: peg:: RuleResult :: Matched ( __pos, ( ) )
1018
990
}
991
+ :: peg:: RuleResult :: Failed => :: peg:: RuleResult :: Failed ,
1019
992
}
1020
993
}
994
+ :: peg:: RuleResult :: Failed => {
995
+ __err_state. mark_failure ( __pos, "\" pub\" " ) ;
996
+ :: peg:: RuleResult :: Failed
997
+ }
1021
998
} {
1022
999
:: peg:: RuleResult :: Matched ( __newpos, _) => :: peg:: RuleResult :: Matched (
1023
1000
__newpos,
@@ -3172,12 +3149,12 @@ pub mod peg {
3172
3149
}
3173
3150
:: peg:: RuleResult :: Failed => {
3174
3151
let __choice_res =
3175
- match :: peg:: ParseLiteral :: parse_string_literal ( __input, __pos, "crate " ) {
3152
+ match :: peg:: ParseLiteral :: parse_string_literal ( __input, __pos, "rule " ) {
3176
3153
:: peg:: RuleResult :: Matched ( __pos, __val) => {
3177
3154
:: peg:: RuleResult :: Matched ( __pos, __val)
3178
3155
}
3179
3156
:: peg:: RuleResult :: Failed => {
3180
- __err_state. mark_failure ( __pos, "\" crate \" " ) ;
3157
+ __err_state. mark_failure ( __pos, "\" rule \" " ) ;
3181
3158
:: peg:: RuleResult :: Failed
3182
3159
}
3183
3160
} ;
@@ -3187,13 +3164,13 @@ pub mod peg {
3187
3164
}
3188
3165
:: peg:: RuleResult :: Failed => {
3189
3166
let __choice_res = match :: peg:: ParseLiteral :: parse_string_literal (
3190
- __input, __pos, "rule " ,
3167
+ __input, __pos, "use " ,
3191
3168
) {
3192
3169
:: peg:: RuleResult :: Matched ( __pos, __val) => {
3193
3170
:: peg:: RuleResult :: Matched ( __pos, __val)
3194
3171
}
3195
3172
:: peg:: RuleResult :: Failed => {
3196
- __err_state. mark_failure ( __pos, "\" rule \" " ) ;
3173
+ __err_state. mark_failure ( __pos, "\" use \" " ) ;
3197
3174
:: peg:: RuleResult :: Failed
3198
3175
}
3199
3176
} ;
@@ -3202,34 +3179,15 @@ pub mod peg {
3202
3179
:: peg:: RuleResult :: Matched ( __pos, __value)
3203
3180
}
3204
3181
:: peg:: RuleResult :: Failed => {
3205
- let __choice_res =
3206
- match :: peg:: ParseLiteral :: parse_string_literal (
3207
- __input, __pos, "use" ,
3208
- ) {
3209
- :: peg:: RuleResult :: Matched ( __pos, __val) => {
3210
- :: peg:: RuleResult :: Matched ( __pos, __val)
3211
- }
3212
- :: peg:: RuleResult :: Failed => {
3213
- __err_state. mark_failure ( __pos, "\" use\" " ) ;
3214
- :: peg:: RuleResult :: Failed
3215
- }
3216
- } ;
3217
- match __choice_res {
3218
- :: peg:: RuleResult :: Matched ( __pos, __value) => {
3219
- :: peg:: RuleResult :: Matched ( __pos, __value)
3182
+ match :: peg:: ParseLiteral :: parse_string_literal (
3183
+ __input, __pos, "type" ,
3184
+ ) {
3185
+ :: peg:: RuleResult :: Matched ( __pos, __val) => {
3186
+ :: peg:: RuleResult :: Matched ( __pos, __val)
3220
3187
}
3221
3188
:: peg:: RuleResult :: Failed => {
3222
- match :: peg:: ParseLiteral :: parse_string_literal (
3223
- __input, __pos, "type" ,
3224
- ) {
3225
- :: peg:: RuleResult :: Matched ( __pos, __val) => {
3226
- :: peg:: RuleResult :: Matched ( __pos, __val)
3227
- }
3228
- :: peg:: RuleResult :: Failed => {
3229
- __err_state. mark_failure ( __pos, "\" type\" " ) ;
3230
- :: peg:: RuleResult :: Failed
3231
- }
3232
- }
3189
+ __err_state. mark_failure ( __pos, "\" type\" " ) ;
3190
+ :: peg:: RuleResult :: Failed
3233
3191
}
3234
3192
}
3235
3193
}
0 commit comments