diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-30 12:30:00 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-30 12:30:00 +0100 |
commit | be803efb7c7ba257716fcc97c57ecfd07e278b07 (patch) | |
tree | 7618dd660346f62715e908355e51917c0b70f914 /xtask/src/codegen | |
parent | 570fdf26c90758c04b90fadfe1b0e6ee684c6dbe (diff) | |
parent | 96313283cd6cb7732ad4f6498f938dcd428d1864 (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.ungram | 8 |
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 = | |||
26 | ItemList = | 26 | ItemList = |
27 | '{' Attr* Item* '}' | 27 | '{' Attr* Item* '}' |
28 | 28 | ||
29 | ExternCrate = | ||
30 | Attr* Visibility? 'extern' 'crate' (NameRef | 'self') Rename? ';' | ||
31 | |||
29 | FnDef = | 32 | FnDef = |
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 = | |||
404 | Rename = | 407 | Rename = |
405 | 'as' Name | 408 | 'as' Name |
406 | 409 | ||
407 | ExternCrateItem = | ||
408 | Attr* Visibility? 'extern' 'crate' (NameRef | 'self') Rename? ';' | ||
409 | |||
410 | Path = | 410 | Path = |
411 | (qualifier:Path '::')? segment:PathSegment | 411 | (qualifier:Path '::')? segment:PathSegment |
412 | 412 | ||