diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-31 13:13:31 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-31 13:13:31 +0100 |
commit | eccb5d52d3c4b82b6b61e231aa137b4aeb8c94ec (patch) | |
tree | a40a875cf0c364144d656f77b30b464f372f3667 /xtask/src | |
parent | 8c802a3dbb5ea1dea8de17f59d0620e3a710474a (diff) | |
parent | a6e45c6c69bf258118940941c12d057deb79e60c (diff) |
Merge #5619
5619: Reame PlaceholderType -> InferType r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/ast_src.rs | 2 | ||||
-rw-r--r-- | xtask/src/codegen/rust.ungram | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index 114898e38..38b60b2a5 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs | |||
@@ -117,7 +117,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc { | |||
117 | "ARRAY_TYPE", | 117 | "ARRAY_TYPE", |
118 | "SLICE_TYPE", | 118 | "SLICE_TYPE", |
119 | "REFERENCE_TYPE", | 119 | "REFERENCE_TYPE", |
120 | "PLACEHOLDER_TYPE", | 120 | "INFER_TYPE", |
121 | "FN_POINTER_TYPE", | 121 | "FN_POINTER_TYPE", |
122 | "FOR_TYPE", | 122 | "FOR_TYPE", |
123 | "IMPL_TRAIT_TYPE", | 123 | "IMPL_TRAIT_TYPE", |
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 8f0e66278..5dee85c2d 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -197,7 +197,7 @@ Type = | |||
197 | | ArrayType | 197 | | ArrayType |
198 | | SliceType | 198 | | SliceType |
199 | | ReferenceType | 199 | | ReferenceType |
200 | | PlaceholderType | 200 | | InferType |
201 | | FnPointerType | 201 | | FnPointerType |
202 | | ForType | 202 | | ForType |
203 | | ImplTraitType | 203 | | ImplTraitType |
@@ -206,28 +206,28 @@ Type = | |||
206 | ParenType = | 206 | ParenType = |
207 | '(' Type ')' | 207 | '(' Type ')' |
208 | 208 | ||
209 | TupleType = | ||
210 | '(' fields:Type* ')' | ||
211 | |||
212 | NeverType = | 209 | NeverType = |
213 | '!' | 210 | '!' |
214 | 211 | ||
215 | PathType = | 212 | PathType = |
216 | Path | 213 | Path |
217 | 214 | ||
215 | TupleType = | ||
216 | '(' fields:(Type (',' Type)* ','?)? ')' | ||
217 | |||
218 | PointerType = | 218 | PointerType = |
219 | '*' ('const' | 'mut') Type | 219 | '*' ('const' | 'mut') Type |
220 | 220 | ||
221 | ReferenceType = | ||
222 | '&' 'lifetime'? 'mut'? Type | ||
223 | |||
221 | ArrayType = | 224 | ArrayType = |
222 | '[' Type ';' Expr ']' | 225 | '[' Type ';' Expr ']' |
223 | 226 | ||
224 | SliceType = | 227 | SliceType = |
225 | '[' Type ']' | 228 | '[' Type ']' |
226 | 229 | ||
227 | ReferenceType = | 230 | InferType = |
228 | '&' 'lifetime'? 'mut'? Type | ||
229 | |||
230 | PlaceholderType = | ||
231 | '_' | 231 | '_' |
232 | 232 | ||
233 | FnPointerType = | 233 | FnPointerType = |