Move the growable typifier into frontend helpers

This commit is contained in:
Dzmitry Malyshau committed 2021-03-22 15:17:00 -04:00
1 parent d4bc463d50
commit 6086f13bf0
9 files changed
+111 -165

No files matched your search

+2 -3
View File
@@ -499,9 +499,8 @@ impl FunctionInfo {
},
};
let ty = TypeResolution::new(expression, type_arena, resolve_context, |h| {
&self.expressions[h.index()].ty
})?;
let ty =
resolve_context.resolve(expression, type_arena, |h| &self.expressions[h.index()].ty)?;
self.expressions[handle.index()] = ExpressionInfo {
uniformity,
ref_count: 0,