diff options
| author | David Wood <david@davidtw.co> | 2019-03-12 16:53:33 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2019-04-21 09:48:11 +0100 |
| commit | 41c6bb1096abb026d496c2136bb18c001eca46fe (patch) | |
| tree | 18bc1364d09a1e9ac054d312355af65ca5139c72 /src/libsyntax_ext | |
| parent | 8b57be1bb3be3be5ac431ed9a0a310d2023b1c9d (diff) | |
| download | rust-41c6bb1096abb026d496c2136bb18c001eca46fe.tar.gz rust-41c6bb1096abb026d496c2136bb18c001eca46fe.zip | |
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 <pat>: <ty> = __arg0;` statements.
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/deriving/debug.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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::Expr>) -> ast id: ast::DUMMY_NODE_ID, span: sp, attrs: ThinVec::new(), + source: ast::LocalSource::Normal, }); ast::Stmt { id: ast::DUMMY_NODE_ID, |
