diff options
| author | David Wood <david@davidtw.co> | 2019-03-13 17:10:27 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2019-04-21 16:46:32 +0100 |
| commit | 9d7da824d6a691d58d486e22cc789c572e3d0bf0 (patch) | |
| tree | efd08de2dcfbfbf790fd4f3beb989c7d7eba7da7 /src/libsyntax/ext | |
| parent | 92e72df2c1402d3d8fceac81e650b633c555a523 (diff) | |
| download | rust-9d7da824d6a691d58d486e22cc789c572e3d0bf0.tar.gz rust-9d7da824d6a691d58d486e22cc789c572e3d0bf0.zip | |
Introduce `ArgSource` for diagnostics.
This commit introduces an `ArgSource` enum that is lowered into the HIR so that diagnostics can correctly refer to the argument pattern's original name rather than the generated pattern.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index 029c45eaa72..40dd187ed28 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -979,7 +979,8 @@ impl<'a> AstBuilder for ExtCtxt<'a> { ast::Arg { ty, pat: arg_pat, - id: ast::DUMMY_NODE_ID + id: ast::DUMMY_NODE_ID, + source: ast::ArgSource::Normal, } } |
