about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/macros.rs7
-rw-r--r--src/utils.rs4
2 files changed, 8 insertions, 3 deletions
diff --git a/src/macros.rs b/src/macros.rs
index 779a1149f41..927187dfd8a 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -1247,7 +1247,12 @@ impl MacroParser {
                 let data = delimited_span.entire().data();
                 (
                     data.hi,
-                    Span::new(data.lo + BytePos(1), data.hi - BytePos(1), data.ctxt),
+                    Span::new(
+                        data.lo + BytePos(1),
+                        data.hi - BytePos(1),
+                        data.ctxt,
+                        data.parent,
+                    ),
                     delimited_span.entire(),
                 )
             }
diff --git a/src/utils.rs b/src/utils.rs
index 06159a1b26e..29e1e070d41 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -356,11 +356,11 @@ macro_rules! source {
 }
 
 pub(crate) fn mk_sp(lo: BytePos, hi: BytePos) -> Span {
-    Span::new(lo, hi, SyntaxContext::root())
+    Span::new(lo, hi, SyntaxContext::root(), None)
 }
 
 pub(crate) fn mk_sp_lo_plus_one(lo: BytePos) -> Span {
-    Span::new(lo, lo + BytePos(1), SyntaxContext::root())
+    Span::new(lo, lo + BytePos(1), SyntaxContext::root(), None)
 }
 
 // Returns `true` if the given span does not intersect with file lines.