mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Fix resolution of eager macro contents
This commit is contained in:
parent
1f0c20e8ba
commit
35e5c3b3f9
12 changed files with 375 additions and 305 deletions
|
@ -35,7 +35,12 @@ pub fn find_path_prefixed(
|
|||
|
||||
const MAX_PATH_LEN: usize = 15;
|
||||
|
||||
impl ModPath {
|
||||
trait ModPathExt {
|
||||
fn starts_with_std(&self) -> bool;
|
||||
fn can_start_with_std(&self) -> bool;
|
||||
}
|
||||
|
||||
impl ModPathExt for ModPath {
|
||||
fn starts_with_std(&self) -> bool {
|
||||
self.segments().first() == Some(&known::std)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue