diff --git a/src/yellow/syntax.rs b/src/yellow/syntax.rs index ae3302ed90..64af082365 100644 --- a/src/yellow/syntax.rs +++ b/src/yellow/syntax.rs @@ -18,7 +18,8 @@ impl<'a> TreeRoot for &'a SyntaxRoot {} #[derive(Clone, Copy)] pub struct SyntaxNode> { pub(crate) root: ROOT, - // guaranteed to be alive bc SyntaxRoot holds a strong ref + // Guaranteed to not dangle, because `root` holds a + // strong reference to red's ancestor red: ptr::NonNull, }