fix: Smaller spans for unresolved field and method diagnostics

This commit is contained in:
Lukas Wirth 2023-12-08 18:46:36 +01:00
parent 9e82ab54e8
commit b1a8f83a0c
7 changed files with 99 additions and 18 deletions

View file

@ -16,7 +16,7 @@ doctest = false
cov-mark = "2.0.0-pre.1"
either.workspace = true
itertools.workspace = true
rowan = "0.15.11"
rowan = "0.15.15"
rustc-hash = "1.1.0"
once_cell = "1.17.0"
indexmap.workspace = true

View file

@ -33,6 +33,7 @@ impl<N: AstNode + std::fmt::Debug> std::fmt::Debug for AstPtr<N> {
}
}
impl<N: AstNode> Copy for AstPtr<N> {}
impl<N: AstNode> Clone for AstPtr<N> {
fn clone(&self) -> AstPtr<N> {
AstPtr { raw: self.raw.clone(), _ty: PhantomData }