File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
src/doc/rustc/src/symbol-mangling Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -983,12 +983,16 @@ the suffixed name has the same semantics as the original.
983
983
## Common rules
984
984
[decimal - number ]: #common - rules
985
985
[digit ]: #common - rules
986
+ [non - zero - digit ]: #common - rules
986
987
[lower ]: #common - rules
987
988
[upper ]: #common - rules
988
989
989
- > [decimal - number ] → * [digit ]* {* [digit ]* }
990
+ > [decimal - number ] → \
991
+ > & nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ; `0 ` \
992
+ > & nbsp ;& nbsp ; | * [non - zero - digit ]* {* [digit ]* }
990
993
>
991
- > [digit ] → `0 ` | `1 ` | `2 ` | `3 ` | `4 ` | `5 ` | `6 ` | `7 ` | `8 ` | `9 `
994
+ > [non - zero - digit ] → `1 ` | `2 ` | `3 ` | `4 ` | `5 ` | `6 ` | `7 ` | `8 ` | `9 ` \
995
+ > [digit ] → `0 ` | * [non - zero - digit ]*
992
996
>
993
997
> [lower ] → `a ` | `b ` | `c ` | `d ` | `e ` | `f ` | `g ` | `h ` | `i ` | `j ` | `k ` | `l ` | `m ` | `n ` | `o ` | `p ` | `q ` | `r ` | `s ` | `t ` | `u ` | `v ` | `w ` | `x ` | `y ` | `z `
994
998
>
@@ -1131,11 +1135,14 @@ The following is a summary of all of the productions of the symbol grammar.
1131
1135
> [vendor - specific - suffix ] → (`. ` | `$ `) * [suffix ]* \
1132
1136
> [suffix ] → {* byte * }
1133
1137
>
1134
- > [decimal - number ] → * [digit ]* {* [digit ]* }
1138
+ > [decimal - number ] → \
1139
+ > & nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ; `0 ` \
1140
+ > & nbsp ;& nbsp ; | * [non - zero - digit ]* {* [digit ]* }
1135
1141
>
1136
1142
> [base - 62 - number ] → { * [digit ]* | * [lower ]* | * [upper ]* } `_ `
1137
1143
>
1138
- > [digit ] → `0 ` | `1 ` | `2 ` | `3 ` | `4 ` | `5 ` | `6 ` | `7 ` | `8 ` | `9 ` \
1144
+ > [non - zero - digit ] → `1 ` | `2 ` | `3 ` | `4 ` | `5 ` | `6 ` | `7 ` | `8 ` | `9 ` \
1145
+ > [digit ] → `0 ` | * [non - zero - digit ]* \
1139
1146
> [lower ] → `a ` | `b ` | `c ` | `d ` | `e ` | `f ` | `g ` | `h ` | `i ` | `j ` | `k ` | `l ` | `m ` | `n ` | `o ` | `p ` | `q ` | `r ` | `s ` | `t ` | `u ` | `v ` | `w ` | `x ` | `y ` | `z ` \
1140
1147
> [upper ] → `A ` | `B ` | `C ` | `D ` | `E ` | `F ` | `G ` | `H ` | `I ` | `J ` | `K ` | `L ` | `M ` | `N ` | `O ` | `P ` | `Q ` | `R ` | `S ` | `T ` | `U ` | `V ` | `W ` | `X ` | `Y ` | `Z `
1141
1148
You can’t perform that action at this time.
0 commit comments