Skip to content

Commit 1dd1c64

Browse files
committed
Add raw weak keyword
This was missed in rust-lang#1567
1 parent fb9701c commit 1dd1c64

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/keywords.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ is possible to declare a variable or method with the name `union`.
104104
> KW_MACRO_RULES : `macro_rules`\
105105
> KW_UNION : `union`\
106106
> KW_STATICLIFETIME : `'static`\
107-
> KW_SAFE : `safe`
107+
> KW_SAFE : `safe`\
108+
> KW_RAW : `raw`
108109
>
109110
> **<sup>Lexer 2015</sup>**\
110111
> KW_DYN : `dyn`
@@ -127,6 +128,8 @@ is possible to declare a variable or method with the name `union`.
127128

128129
* `safe` is used for functions and statics, which has meaning in [external blocks].
129130

131+
* `raw` is used for [raw borrow operators], and is only a keyword when matching a raw borrow operator form (such as `&raw const expr` or `&raw mut expr`).
132+
130133
[items]: items.md
131134
[Variables]: variables.md
132135
[Type parameters]: types/parameters.md
@@ -141,3 +144,4 @@ is possible to declare a variable or method with the name `union`.
141144
[loop label]: expressions/loop-expr.md#loop-labels
142145
[generic lifetime parameter]: items/generics.md
143146
[external blocks]: items/external-blocks.md
147+
[raw borrow operators]: expressions/operator-expr.md#raw-borrow-operators

0 commit comments

Comments
 (0)