mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +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)]
|
#[derive(Clone, Copy)]
|
||||||
pub struct SyntaxNode<ROOT: TreeRoot = Arc<SyntaxRoot>> {
|
pub struct SyntaxNode<ROOT: TreeRoot = Arc<SyntaxRoot>> {
|
||||||
pub(crate) root: ROOT,
|
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>,
|
red: ptr::NonNull<RedNode>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue