Description
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
rustc version:
rust-analyzer version: 0.4.1202-standalone
rustc 1.65.0-nightly (350cca3b6 2022-08-30)
relevant settings: VSCode remote, with a very large project (1000s of crates), no extra env settings for CHALK
Methods from OtherType
that are defined for a type (ThisType
) via implementing Deref<Target=OtherType>
are not being found as valid symbols, and flagged as unresolvedReference
.
Using the following struct:
struct Wrapper(pub String);
impl std::ops::Deref for Wrapper {
type Target = str;
fn deref(&self) -> &Self::Target {
self.0.as_str()
}
}
The following do not resolve .chars()
:
But the following do resolve chars()
correctly:
Full source (and proof that these work) at:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=d5c1d59fa47c1228df2be80042ec41a1