From 41c6bb1096abb026d496c2136bb18c001eca46fe Mon Sep 17 00:00:00 2001 From: David Wood Date: Tue, 12 Mar 2019 16:53:33 +0100 Subject: Introduce `LocalSource` into the AST. This will be used to keep track of the origin of a local in the AST. In particular, it will be used by `async fn` lowering for the locals in `let : = __arg0;` statements. --- src/libsyntax_ext/deriving/debug.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsyntax_ext') diff --git a/src/libsyntax_ext/deriving/debug.rs b/src/libsyntax_ext/deriving/debug.rs index 7c47c6ff79a..2fc1fc9140d 100644 --- a/src/libsyntax_ext/deriving/debug.rs +++ b/src/libsyntax_ext/deriving/debug.rs @@ -128,6 +128,7 @@ fn stmt_let_undescore(cx: &mut ExtCtxt<'_>, sp: Span, expr: P) -> ast id: ast::DUMMY_NODE_ID, span: sp, attrs: ThinVec::new(), + source: ast::LocalSource::Normal, }); ast::Stmt { id: ast::DUMMY_NODE_ID, -- cgit 1.4.1-3-g733a5