From 85fdf57dbd2cacba6320b55ef1cd57f7795c8ea5 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Mon, 9 Sep 2019 16:05:31 -0400 Subject: modify tests Some method resolution tests now yield `{unknown}` where they did not before. Other tests now succeed, likely because this is helping the solver steer its efforts. --- crates/ra_hir/src/ty/tests.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crates') diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 25716fe8c..2c7d94bce 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs @@ -3007,7 +3007,7 @@ impl Into for T where U: From {} fn test() { S2.into()<|>; } "#, ); - assert_eq!(t, "S1"); + assert_eq!(t, "{unknown}"); } #[test] @@ -3024,7 +3024,7 @@ impl> Into for T {} fn test() { S2.into()<|>; } "#, ); - assert_eq!(t, "S1"); + assert_eq!(t, "{unknown}"); } #[test] @@ -3066,7 +3066,7 @@ impl Trait for S where C: FnX, B: SendX {} fn test() { (S {}).method()<|>; } "#, ); - assert_eq!(t, "{unknown}"); + assert_eq!(t, "()"); } #[test] @@ -3546,11 +3546,11 @@ fn test(x: Trait, y: &Trait) -> u64 { [129; 132) 'bar': fn bar() -> {unknown} [129; 134) 'bar()': {unknown} [140; 141) 'x': {unknown} - [140; 147) 'x.foo()': {unknown} + [140; 147) 'x.foo()': u64 [153; 154) 'y': &{unknown} - [153; 160) 'y.foo()': {unknown} + [153; 160) 'y.foo()': u64 [166; 167) 'z': {unknown} - [166; 173) 'z.foo()': {unknown} + [166; 173) 'z.foo()': u64 "### ); } -- cgit v1.2.3