diff options
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/ast_src.rs | 2 | ||||
-rw-r--r-- | xtask/src/codegen/rust.ungram | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index bcd92c3bc..083727c5c 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs | |||
@@ -98,7 +98,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc { | |||
98 | "ENUM_DEF", | 98 | "ENUM_DEF", |
99 | "FN_DEF", | 99 | "FN_DEF", |
100 | "RET_TYPE", | 100 | "RET_TYPE", |
101 | "EXTERN_CRATE_ITEM", | 101 | "EXTERN_CRATE", |
102 | "MODULE", | 102 | "MODULE", |
103 | "USE_ITEM", | 103 | "USE_ITEM", |
104 | "STATIC_DEF", | 104 | "STATIC_DEF", |
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 | ||