Skip to content

Commit 41372ee

Browse files
committed
rfc, tuple-struct-self-ctor: remove redundant ## Grammar section in reference.
1 parent 2a16873 commit 41372ee

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

text/0000-tuple-struct-self-ctor.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -224,32 +224,6 @@ should work and will probably try at some point.
224224
# Reference-level explanation
225225
[reference-level-explanation]: #reference-level-explanation
226226

227-
## Grammar
228-
229-
Given:
230-
231-
```
232-
%token SELF
233-
```
234-
235-
which lexes `Self`, the following are legal productions in the language:
236-
237-
```
238-
pat : ... // <-- The original grammar of `pat` prior to this RFC.
239-
| SELF '(' ')'
240-
| SELF '(' pat_tup ')'
241-
| SELF
242-
| ...
243-
;
244-
245-
expr : ... // <-- Original grammar of `expr`.
246-
| SELF '(' maybe_exprs ')'
247-
| ...
248-
;
249-
```
250-
251-
## Semantics
252-
253227
When entering one of the following contexts, a Rust compiler will extend
254228
the value namespace with `Self` which maps to the tuple constructor `fn`
255229
in the case of tuple struct, or a constant, in the case of a unit struct:

0 commit comments

Comments
 (0)