From 3fff5aa4d72df9775baca32f54728da8cb6c31ed Mon Sep 17 00:00:00 2001 From: Charles Lew Date: Thu, 17 Sep 2020 00:50:24 +0800 Subject: Use Ty::apply instead of simple and fix method resolution. --- crates/hir_ty/src/tests/method_resolution.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crates/hir_ty/src/tests/method_resolution.rs') diff --git a/crates/hir_ty/src/tests/method_resolution.rs b/crates/hir_ty/src/tests/method_resolution.rs index 690f9d66e..0f17ff151 100644 --- a/crates/hir_ty/src/tests/method_resolution.rs +++ b/crates/hir_ty/src/tests/method_resolution.rs @@ -1072,7 +1072,6 @@ fn method_resolution_foreign_opaque_type() { s.foo(); } "#, - // FIXME: 's.foo()' should be `bool`. expect![[r#" 75..79 'self': &S 89..109 '{ ... }': bool @@ -1084,8 +1083,7 @@ fn method_resolution_foreign_opaque_type() { 146..147 'f': fn f() -> &S 146..149 'f()': &S 157..158 's': &S - 157..164 's.foo()': {unknown} + 157..164 's.foo()': bool "#]], ); } - -- cgit v1.2.3