This commit is contained in:
Aleksey Kladov 2019-11-24 18:48:29 +03:00
parent f5e0a31eaf
commit 434f108ada
8 changed files with 17 additions and 33 deletions

View file

@ -109,7 +109,7 @@ pub fn run(
}
let body = f.body(db);
let inference_result = f.infer(db);
for (expr_id, _) in body.exprs() {
for (expr_id, _) in body.exprs.iter() {
let ty = &inference_result[expr_id];
num_exprs += 1;
if let Ty::Unknown = ty {