Skip to content

Commit 23cc2c6

Browse files
author
Ulrik Sverdrup
committed
---
yaml --- r: 209969 b: refs/heads/try c: 84ef3b5 h: refs/heads/master i: 209967: f8fd393 v: v3
1 parent 57ce4b2 commit 23cc2c6

File tree

142 files changed

+1699
-2218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+1699
-2218
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: 130240afc6eb1da5131f4a66d9e374a28eb6102c
5+
refs/heads/try: 84ef3b53517e2ed1148e6d4214c0c97c2328ead0
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/configure

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,10 +659,9 @@ if [ -n "$CFG_ENABLE_DEBUG" ]; then
659659
CFG_DISABLE_OPTIMIZE=1
660660
CFG_DISABLE_OPTIMIZE_CXX=1
661661
fi
662+
CFG_ENABLE_LLVM_ASSERTIONS=1
662663
CFG_ENABLE_DEBUG_ASSERTIONS=1
663664
CFG_ENABLE_DEBUG_JEMALLOC=1
664-
CFG_ENABLE_DEBUGINFO=1
665-
CFG_ENABLE_LLVM_ASSERTIONS=1
666665
fi
667666

668667
# OK, now write the debugging options

branches/try/src/doc/grammar.md

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,12 @@ explicit codepoint lists. [^inputformat]
9696
## Special Unicode Productions
9797

9898
The following productions in the Rust grammar are defined in terms of Unicode
99-
properties: `ident`, `non_null`, `non_eol`, `non_single_quote` and
100-
`non_double_quote`.
99+
properties: `ident`, `non_null`, `non_star`, `non_eol`, `non_slash_or_star`,
100+
`non_single_quote` and `non_double_quote`.
101101

102102
### Identifiers
103103

104-
The `ident` production is any nonempty Unicode[^non_ascii_idents] string of
105-
the following form:
106-
107-
[^non_ascii_idents]: Non-ASCII characters in identifiers are currently feature
108-
gated. This is expected to improve soon.
104+
The `ident` production is any nonempty Unicode string of the following form:
109105

110106
- The first character has property `XID_start`
111107
- The remaining characters have property `XID_continue`
@@ -122,6 +118,8 @@ Some productions are defined by exclusion of particular Unicode characters:
122118

123119
- `non_null` is any single Unicode character aside from `U+0000` (null)
124120
- `non_eol` is `non_null` restricted to exclude `U+000A` (`'\n'`)
121+
- `non_star` is `non_null` restricted to exclude `U+002A` (`*`)
122+
- `non_slash_or_star` is `non_null` restricted to exclude `U+002F` (`/`) and `U+002A` (`*`)
125123
- `non_single_quote` is `non_null` restricted to exclude `U+0027` (`'`)
126124
- `non_double_quote` is `non_null` restricted to exclude `U+0022` (`"`)
127125

@@ -154,19 +152,19 @@ token : simple_token | ident | literal | symbol | whitespace token ;
154152

155153
<p id="keyword-table-marker"></p>
156154

157-
| | | | | |
158-
|----------|----------|----------|----------|---------|
159-
| abstract | alignof | as | become | box |
160-
| break | const | continue | crate | do |
161-
| else | enum | extern | false | final |
162-
| fn | for | if | impl | in |
163-
| let | loop | macro | match | mod |
164-
| move | mut | offsetof | override | priv |
165-
| proc | pub | pure | ref | return |
166-
| Self | self | sizeof | static | struct |
167-
| super | trait | true | type | typeof |
168-
| unsafe | unsized | use | virtual | where |
169-
| while | yield | | | |
155+
| | | | | |
156+
|----------|----------|----------|----------|--------|
157+
| abstract | alignof | as | become | box |
158+
| break | const | continue | crate | do |
159+
| else | enum | extern | false | final |
160+
| fn | for | if | impl | in |
161+
| let | loop | match | mod | move |
162+
| mut | offsetof | once | override | priv |
163+
| proc | pub | pure | ref | return |
164+
| sizeof | static | self | struct | super |
165+
| true | trait | type | typeof | unsafe |
166+
| unsized | use | virtual | where | while |
167+
| yield | | | | |
170168

171169

172170
Each of these keywords has special meaning in its grammar, and all of them are
@@ -526,15 +524,6 @@ array_elems : [expr [',' expr]*] | [expr ',' ".." expr] ;
526524
idx_expr : expr '[' expr ']' ;
527525
```
528526

529-
### Range expressions
530-
531-
```antlr
532-
range_expr : expr ".." expr |
533-
expr ".." |
534-
".." expr |
535-
".." ;
536-
```
537-
538527
### Unary operator expressions
539528

540529
**FIXME:** grammar?
@@ -621,7 +610,7 @@ lambda_expr : '|' ident_list '|' expr ;
621610
### While loops
622611

623612
```antlr
624-
while_expr : [ lifetime ':' ] "while" no_struct_literal_expr '{' block '}' ;
613+
while_expr : "while" no_struct_literal_expr '{' block '}' ;
625614
```
626615

627616
### Infinite loops
@@ -645,7 +634,7 @@ continue_expr : "continue" [ lifetime ];
645634
### For expressions
646635

647636
```antlr
648-
for_expr : [ lifetime ':' ] "for" pat "in" no_struct_literal_expr '{' block '}' ;
637+
for_expr : "for" pat "in" no_struct_literal_expr '{' block '}' ;
649638
```
650639

651640
### If expressions

0 commit comments

Comments
 (0)