rust/src/libsyntax/ext
bors 5d677b2efd Auto merge of #60861 - Centril:let-chains-ast-intro, r=petrochenkov
[let_chains, 2/6] Introduce `Let(..)` in AST, remove IfLet + WhileLet and parse let chains

Here we remove `ast::ExprKind::{IfLet, WhileLet}` and introduce `ast::ExprKind::Let`.
Moreover, we also:
+ connect the parsing logic for let chains
+ introduce the feature gate
+ rewire HIR lowering a bit.

However, this does not connect the new syntax to semantics in HIR.
That will be the subject of a subsequent PR.

Per https://github.com/rust-lang/rust/issues/53667#issuecomment-471583239.
Next step after https://github.com/rust-lang/rust/pull/59288.

cc @Manishearth re. Clippy.

r? @oli-obk
2019-06-23 12:28:12 +00:00
..
tt let_chains: note re. back-compat wrt. expr beginning. 2019-06-23 01:41:09 +02:00
base.rs resolve/expand: Move expansion info setting to a single earlier point 2019-06-18 11:01:20 +03:00
build.rs Allow attributes in formal function parameters 2019-06-09 07:58:40 -03:00
derive.rs Lint empty 'derive()' as unused attribute. 2019-06-22 13:19:55 +02:00
expand.rs Fix meta-variable binding errors in macros 2019-06-23 01:30:41 +02:00
placeholders.rs rustc: remove 'x: 'y bounds (except from comments/strings). 2019-06-18 18:10:21 +03:00
source_util.rs parser: self.span -> self.token.span 2019-06-07 13:51:23 +03:00