mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 08:57:34 +00:00
clean comments
This commit is contained in:
parent
97bb223279
commit
9a4957d143
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ impl<'a> TreeRoot for &'a SyntaxRoot {}
|
|||
#[derive(Clone, Copy)]
|
||||
pub struct SyntaxNode<ROOT: TreeRoot = Arc<SyntaxRoot>> {
|
||||
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<RedNode>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue