mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-25 21:37:39 +00:00
fix: Smaller spans for unresolved field and method diagnostics
This commit is contained in:
parent
9e82ab54e8
commit
b1a8f83a0c
7 changed files with 99 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue