aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/codegen
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-07-30 12:30:00 +0100
committerGitHub <[email protected]>2020-07-30 12:30:00 +0100
commitbe803efb7c7ba257716fcc97c57ecfd07e278b07 (patch)
tree7618dd660346f62715e908355e51917c0b70f914 /xtask/src/codegen
parent570fdf26c90758c04b90fadfe1b0e6ee684c6dbe (diff)
parent96313283cd6cb7732ad4f6498f938dcd428d1864 (diff)
Merge #5585
5585: Finish extern crate grammar r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r--xtask/src/codegen/rust.ungram8
1 files changed, 4 insertions, 4 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index 76c070402..e6e7c7518 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -7,7 +7,7 @@ Item =
7 ConstDef 7 ConstDef
8| EnumDef 8| EnumDef
9| ExternBlock 9| ExternBlock
10| ExternCrateItem 10| ExternCrate
11| FnDef 11| FnDef
12| ImplDef 12| ImplDef
13| MacroCall 13| MacroCall
@@ -26,6 +26,9 @@ Module =
26ItemList = 26ItemList =
27 '{' Attr* Item* '}' 27 '{' Attr* Item* '}'
28 28
29ExternCrate =
30 Attr* Visibility? 'extern' 'crate' (NameRef | 'self') Rename? ';'
31
29FnDef = 32FnDef =
30 Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList? 33 Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList?
31 ParamList RetType? 34 ParamList RetType?
@@ -404,9 +407,6 @@ UseTreeList =
404Rename = 407Rename =
405 'as' Name 408 'as' Name
406 409
407ExternCrateItem =
408 Attr* Visibility? 'extern' 'crate' (NameRef | 'self') Rename? ';'
409
410Path = 410Path =
411 (qualifier:Path '::')? segment:PathSegment 411 (qualifier:Path '::')? segment:PathSegment
412 412