aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/yellow/syntax.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yellow/syntax.rs b/src/yellow/syntax.rs
index ae3302ed9..64af08236 100644
--- a/src/yellow/syntax.rs
+++ b/src/yellow/syntax.rs
@@ -18,7 +18,8 @@ impl<'a> TreeRoot for &'a SyntaxRoot {}
18#[derive(Clone, Copy)] 18#[derive(Clone, Copy)]
19pub struct SyntaxNode<ROOT: TreeRoot = Arc<SyntaxRoot>> { 19pub struct SyntaxNode<ROOT: TreeRoot = Arc<SyntaxRoot>> {
20 pub(crate) root: ROOT, 20 pub(crate) root: ROOT,
21 // guaranteed to be alive bc SyntaxRoot holds a strong ref 21 // Guaranteed to not dangle, because `root` holds a
22 // strong reference to red's ancestor
22 red: ptr::NonNull<RedNode>, 23 red: ptr::NonNull<RedNode>,
23} 24}
24 25