File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -224,32 +224,6 @@ should work and will probably try at some point.
224
224
# Reference-level explanation
225
225
[ reference-level-explanation ] : #reference-level-explanation
226
226
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
-
253
227
When entering one of the following contexts, a Rust compiler will extend
254
228
the value namespace with ` Self ` which maps to the tuple constructor ` fn `
255
229
in the case of tuple struct, or a constant, in the case of a unit struct:
You can’t perform that action at this time.
0 commit comments