mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Move impls to ItemScope
This commit is contained in:
parent
030e540ad1
commit
1b8ce5b37b
10 changed files with 16 additions and 13 deletions
|
@ -221,7 +221,7 @@ impl Module {
|
|||
|
||||
pub fn impl_blocks(self, db: &impl DefDatabase) -> Vec<ImplBlock> {
|
||||
let def_map = db.crate_def_map(self.id.krate);
|
||||
def_map[self.id.local_id].impls.iter().copied().map(ImplBlock::from).collect()
|
||||
def_map[self.id.local_id].scope.impls().map(ImplBlock::from).collect()
|
||||
}
|
||||
|
||||
pub(crate) fn with_module_id(self, module_id: LocalModuleId) -> Module {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue