Skip to content

Commit 007c81b

Browse files
committed
Rollup merge of rust-lang#24811 - rkruppe:reference-audit, r=steveklabnik
Mention `non_ascii_idents` feature gate and remove unused productions. r? @steveklabnik
2 parents 23782ad + 702f175 commit 007c81b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/doc/reference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,14 @@ explicit code point lists. [^inputformat]
6868
## Special Unicode Productions
6969

7070
The following productions in the Rust grammar are defined in terms of Unicode
71-
properties: `ident`, `non_null`, `non_star`, `non_eol`, `non_slash_or_star`,
72-
`non_single_quote` and `non_double_quote`.
71+
properties: `ident`, `non_null`, `non_eol`, `non_single_quote` and `non_double_quote`.
7372

7473
### Identifiers
7574

76-
The `ident` production is any nonempty Unicode string of the following form:
75+
The `ident` production is any nonempty Unicode[^non_ascii_idents] string of the following form:
76+
77+
[^non_ascii_idents]: Non-ASCII characters in identifiers are currently feature
78+
gated. This is expected to improve soon.
7779

7880
- The first character has property `XID_start`
7981
- The remaining characters have property `XID_continue`
@@ -90,8 +92,6 @@ Some productions are defined by exclusion of particular Unicode characters:
9092

9193
- `non_null` is any single Unicode character aside from `U+0000` (null)
9294
- `non_eol` is `non_null` restricted to exclude `U+000A` (`'\n'`)
93-
- `non_star` is `non_null` restricted to exclude `U+002A` (`*`)
94-
- `non_slash_or_star` is `non_null` restricted to exclude `U+002F` (`/`) and `U+002A` (`*`)
9595
- `non_single_quote` is `non_null` restricted to exclude `U+0027` (`'`)
9696
- `non_double_quote` is `non_null` restricted to exclude `U+0022` (`"`)
9797

0 commit comments

Comments
 (0)