summary refs log tree commit diff
path: root/src/test/ui/proc-macro/nested-macro-rules.stdout
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-09-12 23:26:17 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-09-12 23:26:17 -0400
commita67d248b13e8ac6f83df8994f59e7b89f064339e (patch)
tree71a3a624d11b9bafb692710ac5adcc82264b6309 /src/test/ui/proc-macro/nested-macro-rules.stdout
parent498dab02562a67d503fc1cf0eca0968f44cfecfa (diff)
downloadrust-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.stdout8
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),
     },
 ]