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.
26 lines
766 B
Text
26 lines
766 B
Text
PRINT-BANG INPUT (DISPLAY): FirstStruct
|
|
PRINT-BANG INPUT (DEBUG): TokenStream [
|
|
Group {
|
|
delimiter: None,
|
|
stream: TokenStream [
|
|
Ident {
|
|
ident: "FirstStruct",
|
|
span: $DIR/auxiliary/nested-macro-rules.rs:15:14: 15:25 (#7),
|
|
},
|
|
],
|
|
span: $DIR/auxiliary/nested-macro-rules.rs:9:27: 9:32 (#6),
|
|
},
|
|
]
|
|
PRINT-BANG INPUT (DISPLAY): SecondStruct
|
|
PRINT-BANG INPUT (DEBUG): TokenStream [
|
|
Group {
|
|
delimiter: None,
|
|
stream: TokenStream [
|
|
Ident {
|
|
ident: "SecondStruct",
|
|
span: $DIR/nested-macro-rules.rs:21:38: 21:50 (#13),
|
|
},
|
|
],
|
|
span: $DIR/auxiliary/nested-macro-rules.rs:9:27: 9:32 (#12),
|
|
},
|
|
]
|