diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-09-12 23:26:17 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-09-12 23:26:17 -0400 |
| commit | a67d248b13e8ac6f83df8994f59e7b89f064339e (patch) | |
| tree | 71a3a624d11b9bafb692710ac5adcc82264b6309 /src/test/ui/proc-macro/nested-macro-rules.stdout | |
| parent | 498dab02562a67d503fc1cf0eca0968f44cfecfa (diff) | |
| download | rust-a67d248b13e8ac6f83df8994f59e7b89f064339e.tar.gz rust-a67d248b13e8ac6f83df8994f59e7b89f064339e.zip | |
Properly encode spans with a dummy location and non-root `SyntaxContext`
Previously, we would throw away the `SyntaxContext` of any span with a dummy location during metadata encoding. This commit makes metadata Span encoding consistent with incr-cache Span encoding - an 'invalid span' tag is only used when it doesn't lose any information.
Diffstat (limited to 'src/test/ui/proc-macro/nested-macro-rules.stdout')
| -rw-r--r-- | src/test/ui/proc-macro/nested-macro-rules.stdout | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/proc-macro/nested-macro-rules.stdout b/src/test/ui/proc-macro/nested-macro-rules.stdout index 7feea56c5d8..dcafe3b4bda 100644 --- a/src/test/ui/proc-macro/nested-macro-rules.stdout +++ b/src/test/ui/proc-macro/nested-macro-rules.stdout @@ -5,10 +5,10 @@ PRINT-BANG INPUT (DEBUG): TokenStream [ stream: TokenStream [ Ident { ident: "FirstStruct", - span: $DIR/auxiliary/nested-macro-rules.rs:15:14: 15:25 (#5), + span: $DIR/auxiliary/nested-macro-rules.rs:15:14: 15:25 (#7), }, ], - span: $DIR/auxiliary/nested-macro-rules.rs:9:27: 9:32 (#4), + span: $DIR/auxiliary/nested-macro-rules.rs:9:27: 9:32 (#6), }, ] PRINT-BANG INPUT (DISPLAY): SecondStruct @@ -18,9 +18,9 @@ PRINT-BANG INPUT (DEBUG): TokenStream [ stream: TokenStream [ Ident { ident: "SecondStruct", - span: $DIR/nested-macro-rules.rs:21:38: 21:50 (#11), + span: $DIR/nested-macro-rules.rs:21:38: 21:50 (#13), }, ], - span: $DIR/auxiliary/nested-macro-rules.rs:9:27: 9:32 (#10), + span: $DIR/auxiliary/nested-macro-rules.rs:9:27: 9:32 (#12), }, ] |
