mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Initial support for lang items.
This commit is contained in:
parent
d55f1136d6
commit
e85ee60c42
11 changed files with 204 additions and 41 deletions
|
@ -190,7 +190,7 @@ impl Resolver {
|
|||
.flatten()
|
||||
}
|
||||
|
||||
fn module(&self) -> Option<(&CrateDefMap, CrateModuleId)> {
|
||||
pub(crate) fn module(&self) -> Option<(&CrateDefMap, CrateModuleId)> {
|
||||
self.scopes.iter().rev().find_map(|scope| match scope {
|
||||
Scope::ModuleScope(m) => Some((&*m.crate_def_map, m.module_id)),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue