Turn ImplBlock into a copy type just containing IDs

This makes it more like the other code model types.

Also make Module::definition_source/declaration_source return HirFileIds, to
make them more like the other source functions.
This commit is contained in:
Florian Diebold 2019-02-16 21:09:58 +01:00
parent 6932b77093
commit 0242acae53
9 changed files with 65 additions and 77 deletions

View file

@ -36,10 +36,10 @@ pub fn run(verbose: bool) -> Result<()> {
}
for impl_block in module.impl_blocks(&db) {
for item in impl_block.items() {
for item in impl_block.items(&db) {
num_decls += 1;
match item {
ImplItem::Method(f) => funcs.push(*f),
ImplItem::Method(f) => funcs.push(f),
_ => {}
}
}