Handle recursive types in canonicalization

This commit is contained in:
Florian Diebold
2019-05-04 18:25:07 +02:00
parent 5795d773db
commit f43e69a64e
3 changed files with 15 additions and 5 deletions

View File

@@ -351,7 +351,7 @@ impl SourceAnalyzer {
callback: impl FnMut(&Ty, Function) -> Option<T>,
) -> Option<T> {
// There should be no inference vars in types passed here
// TODO check that?
// FIXME check that?
let canonical = crate::ty::Canonical { value: ty, num_vars: 0 };
crate::ty::method_resolution::iterate_method_candidates(
&canonical,