aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/ty.rs2
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__bug_585.snap14
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_associated_type_bound.snap6
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap12
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_binary_op.snap8
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_1.snap4
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_2.snap4
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_const.snap6
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_1.snap14
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_2.snap14
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap30
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_project_associated_type.snap6
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_static.snap10
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_1.snap10
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_3.snap10
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_4.snap16
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_5.snap40
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_trait_assoc_method.snap16
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap6
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_2.snap6
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_scoped.snap10
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_simple.snap10
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_tuple_struct_generics.snap6
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_unary_op.snap14
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_with_multiple_trait_impls.snap10
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__no_panic_on_field_of_enum.snap8
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__recursive_vars.snap18
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__recursive_vars_2.snap32
28 files changed, 171 insertions, 171 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs
index 78270a9b7..bad811a56 100644
--- a/crates/ra_hir/src/ty.rs
+++ b/crates/ra_hir/src/ty.rs
@@ -339,7 +339,7 @@ impl fmt::Display for Ty {
339 Ok(()) 339 Ok(())
340 } 340 }
341 Ty::Param { name, .. } => write!(f, "{}", name), 341 Ty::Param { name, .. } => write!(f, "{}", name),
342 Ty::Unknown => write!(f, "[unknown]"), 342 Ty::Unknown => write!(f, "{{unknown}}"),
343 Ty::Infer(..) => write!(f, "_"), 343 Ty::Infer(..) => write!(f, "_"),
344 } 344 }
345 } 345 }
diff --git a/crates/ra_hir/src/ty/snapshots/tests__bug_585.snap b/crates/ra_hir/src/ty/snapshots/tests__bug_585.snap
index e7b42e413..4b5630bb6 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__bug_585.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__bug_585.snap
@@ -1,15 +1,15 @@
1--- 1---
2created: "2019-01-22T14:44:59.880187500+00:00" 2created: "2019-03-02T19:54:58.488684667Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs
4expression: "&result" 5expression: "&result"
5source: "crates\\ra_hir\\src\\ty\\tests.rs"
6--- 6---
7[11; 89) '{ ... } }': () 7[11; 89) '{ ... } }': ()
8[17; 21) 'X {}': [unknown] 8[17; 21) 'X {}': {unknown}
9[27; 87) 'match ... }': () 9[27; 87) 'match ... }': ()
10[33; 34) 'x': [unknown] 10[33; 34) 'x': {unknown}
11[45; 52) 'A::B {}': [unknown] 11[45; 52) 'A::B {}': {unknown}
12[56; 58) '()': () 12[56; 58) '()': ()
13[68; 74) 'A::Y()': [unknown] 13[68; 74) 'A::Y()': {unknown}
14[78; 80) '()': () 14[78; 80) '()': ()
15 15
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_type_bound.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_associated_type_bound.snap
index 4dbde99f9..c9ec055f2 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_type_bound.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_associated_type_bound.snap
@@ -1,10 +1,10 @@
1--- 1---
2created: "2019-03-02T13:52:02.767222917Z" 2created: "2019-03-02T19:54:58.491748649Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
7[67; 100) '{ ...own; }': () 7[67; 100) '{ ...own; }': ()
8[77; 78) 'y': [unknown] 8[77; 78) 'y': {unknown}
9[90; 97) 'unknown': [unknown] 9[90; 97) 'unknown': {unknown}
10 10
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap
index f5840a934..7d6091f6c 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap
@@ -1,25 +1,25 @@
1--- 1---
2created: "2019-01-26T17:46:03.842478456+00:00" 2created: "2019-03-02T19:54:58.494864698Z"
3creator: [email protected] 3creator: [email protected]
4expression: "&result"
5source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result"
6--- 6---
7[14; 15) 'x': u32 7[14; 15) 'x': u32
8[22; 24) '{}': () 8[22; 24) '{}': ()
9[78; 231) '{ ...t &c }': &mut &f64 9[78; 231) '{ ...t &c }': &mut &f64
10[88; 89) 'a': u32 10[88; 89) 'a': u32
11[92; 108) 'unknow...nction': [unknown] 11[92; 108) 'unknow...nction': {unknown}
12[92; 110) 'unknow...tion()': u32 12[92; 110) 'unknow...tion()': u32
13[116; 125) 'takes_u32': fn takes_u32(u32) -> () 13[116; 125) 'takes_u32': fn takes_u32(u32) -> ()
14[116; 128) 'takes_u32(a)': () 14[116; 128) 'takes_u32(a)': ()
15[126; 127) 'a': u32 15[126; 127) 'a': u32
16[138; 139) 'b': i32 16[138; 139) 'b': i32
17[142; 158) 'unknow...nction': [unknown] 17[142; 158) 'unknow...nction': {unknown}
18[142; 160) 'unknow...tion()': i32 18[142; 160) 'unknow...tion()': i32
19[166; 184) 'S { i3...d: b }': S 19[166; 184) 'S { i3...d: b }': S
20[181; 182) 'b': i32 20[181; 182) 'b': i32
21[194; 195) 'c': f64 21[194; 195) 'c': f64
22[198; 214) 'unknow...nction': [unknown] 22[198; 214) 'unknow...nction': {unknown}
23[198; 216) 'unknow...tion()': f64 23[198; 216) 'unknow...tion()': f64
24[222; 229) '&mut &c': &mut &f64 24[222; 229) '&mut &c': &mut &f64
25[227; 229) '&c': &f64 25[227; 229) '&c': &f64
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_binary_op.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_binary_op.snap
index 80ffe6e11..c8796b29b 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_binary_op.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_binary_op.snap
@@ -1,6 +1,6 @@
1--- 1---
2created: "2019-02-18T07:03:52.524808301Z" 2created: "2019-03-02T19:54:58.498001346Z"
3creator: [email protected].2 3creator: [email protected].3
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
@@ -39,8 +39,8 @@ expression: "&result"
39[232; 238) 'z || y': bool 39[232; 238) 'z || y': bool
40[237; 238) 'y': bool 40[237; 238) 'y': bool
41[242; 243) '5': i32 41[242; 243) '5': i32
42[253; 254) 'd': [unknown] 42[253; 254) 'd': {unknown}
43[257; 258) 'b': [unknown] 43[257; 258) 'b': {unknown}
44[268; 269) 'g': () 44[268; 269) 'g': ()
45[272; 283) 'minus_forty': isize 45[272; 283) 'minus_forty': isize
46[272; 288) 'minus_...y ^= i': () 46[272; 288) 'minus_...y ^= i': ()
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_1.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_1.snap
index c56e6ba42..183171b02 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_1.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_1.snap
@@ -1,5 +1,5 @@
1--- 1---
2created: "2019-03-02T13:49:53.509955706Z" 2created: "2019-03-02T19:54:58.492145019Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
@@ -7,5 +7,5 @@ expression: "&result"
7[59; 60) 't': T 7[59; 60) 't': T
8[65; 84) '{ ...d(); }': () 8[65; 84) '{ ...d(); }': ()
9[71; 72) 't': T 9[71; 72) 't': T
10[71; 81) 't.method()': [unknown] 10[71; 81) 't.method()': {unknown}
11 11
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_2.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_2.snap
index 7791a57da..3b419d93c 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_2.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_2.snap
@@ -1,5 +1,5 @@
1--- 1---
2created: "2019-03-02T13:49:53.477633667Z" 2created: "2019-03-02T19:54:58.495889098Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
@@ -7,5 +7,5 @@ expression: "&result"
7[66; 67) 't': T 7[66; 67) 't': T
8[72; 91) '{ ...d(); }': () 8[72; 91) '{ ...d(); }': ()
9[78; 79) 't': T 9[78; 79) 't': T
10[78; 88) 't.method()': [unknown] 10[78; 88) 't.method()': {unknown}
11 11
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_const.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_const.snap
index a5eba3980..5382cb71a 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_const.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_const.snap
@@ -1,12 +1,12 @@
1--- 1---
2created: "2019-02-25T07:26:34.115351100Z" 2created: "2019-03-02T19:54:58.498050919Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
7[95; 213) '{ ...NST; }': () 7[95; 213) '{ ...NST; }': ()
8[138; 139) 'x': [unknown] 8[138; 139) 'x': {unknown}
9[142; 153) 'LOCAL_CONST': [unknown] 9[142; 153) 'LOCAL_CONST': {unknown}
10[163; 164) 'z': u32 10[163; 164) 'z': u32
11[167; 179) 'GLOBAL_CONST': u32 11[167; 179) 'GLOBAL_CONST': u32
12[189; 191) 'id': u32 12[189; 191) 'id': u32
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_1.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_1.snap
index c8d8e9806..6ff04bd8f 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_1.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_1.snap
@@ -1,5 +1,5 @@
1--- 1---
2created: "2019-03-02T13:49:53.558635265Z" 2created: "2019-03-02T19:54:58.513042571Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
@@ -7,11 +7,11 @@ expression: "&result"
7[86; 87) 't': T 7[86; 87) 't': T
8[92; 94) '{}': () 8[92; 94) '{}': ()
9[105; 144) '{ ...(s); }': () 9[105; 144) '{ ...(s); }': ()
10[115; 116) 's': S<[unknown]> 10[115; 116) 's': S<{unknown}>
11[119; 120) 'S': S<[unknown]>(T) -> S<T> 11[119; 120) 'S': S<{unknown}>(T) -> S<T>
12[119; 129) 'S(unknown)': S<[unknown]> 12[119; 129) 'S(unknown)': S<{unknown}>
13[121; 128) 'unknown': [unknown] 13[121; 128) 'unknown': {unknown}
14[135; 138) 'foo': fn foo<S<[unknown]>>(T) -> () 14[135; 138) 'foo': fn foo<S<{unknown}>>(T) -> ()
15[135; 141) 'foo(s)': () 15[135; 141) 'foo(s)': ()
16[139; 140) 's': S<[unknown]> 16[139; 140) 's': S<{unknown}>
17 17
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_2.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_2.snap
index 37def29c3..8a0365145 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_2.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_2.snap
@@ -1,5 +1,5 @@
1--- 1---
2created: "2019-03-02T13:49:53.572131028Z" 2created: "2019-03-02T19:54:58.520601712Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
@@ -7,12 +7,12 @@ expression: "&result"
7[87; 88) 't': T 7[87; 88) 't': T
8[98; 100) '{}': () 8[98; 100) '{}': ()
9[111; 163) '{ ...(s); }': () 9[111; 163) '{ ...(s); }': ()
10[121; 122) 's': S<[unknown]> 10[121; 122) 's': S<{unknown}>
11[125; 126) 'S': S<[unknown]>(T) -> S<T> 11[125; 126) 'S': S<{unknown}>(T) -> S<T>
12[125; 135) 'S(unknown)': S<[unknown]> 12[125; 135) 'S(unknown)': S<{unknown}>
13[127; 134) 'unknown': [unknown] 13[127; 134) 'unknown': {unknown}
14[145; 146) 'x': u32 14[145; 146) 'x': u32
15[154; 157) 'foo': fn foo<u32, S<[unknown]>>(T) -> U 15[154; 157) 'foo': fn foo<u32, S<{unknown}>>(T) -> U
16[154; 160) 'foo(s)': u32 16[154; 160) 'foo(s)': u32
17[158; 159) 's': S<[unknown]> 17[158; 159) 's': S<{unknown}>
18 18
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap
index 1da46daf8..06ef0007c 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap
@@ -1,8 +1,8 @@
1--- 1---
2created: "2019-01-22T14:45:00.037734500+00:00" 2created: "2019-03-02T19:54:58.538812297Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs
4expression: "&result" 5expression: "&result"
5source: "crates\\ra_hir\\src\\ty\\tests.rs"
6--- 6---
7[9; 10) 'x': &i32 7[9; 10) 'x': &i32
8[18; 369) '{ ...o_x; }': () 8[18; 369) '{ ...o_x; }': ()
@@ -20,21 +20,21 @@ source: "crates\\ra_hir\\src\\ty\\tests.rs"
20[84; 85) '1': i32 20[84; 85) '1': i32
21[87; 94) '"hello"': &str 21[87; 94) '"hello"': &str
22[102; 152) 'for (e... }': () 22[102; 152) 'for (e... }': ()
23[106; 112) '(e, f)': ([unknown], [unknown]) 23[106; 112) '(e, f)': ({unknown}, {unknown})
24[107; 108) 'e': [unknown] 24[107; 108) 'e': {unknown}
25[110; 111) 'f': [unknown] 25[110; 111) 'f': {unknown}
26[116; 125) 'some_iter': [unknown] 26[116; 125) 'some_iter': {unknown}
27[126; 152) '{ ... }': () 27[126; 152) '{ ... }': ()
28[140; 141) 'g': [unknown] 28[140; 141) 'g': {unknown}
29[144; 145) 'e': [unknown] 29[144; 145) 'e': {unknown}
30[158; 205) 'if let... }': () 30[158; 205) 'if let... }': ()
31[165; 170) '[val]': [unknown] 31[165; 170) '[val]': {unknown}
32[173; 176) 'opt': [unknown] 32[173; 176) 'opt': {unknown}
33[177; 205) '{ ... }': () 33[177; 205) '{ ... }': ()
34[191; 192) 'h': [unknown] 34[191; 192) 'h': {unknown}
35[195; 198) 'val': [unknown] 35[195; 198) 'val': {unknown}
36[215; 221) 'lambda': [unknown] 36[215; 221) 'lambda': {unknown}
37[224; 256) '|a: u6...b; c }': [unknown] 37[224; 256) '|a: u6...b; c }': {unknown}
38[225; 226) 'a': u64 38[225; 226) 'a': u64
39[233; 234) 'b': u64 39[233; 234) 'b': u64
40[236; 237) 'c': i32 40[236; 237) 'c': i32
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_project_associated_type.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_project_associated_type.snap
index 6d5331799..e18815aba 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_project_associated_type.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_project_associated_type.snap
@@ -1,5 +1,5 @@
1--- 1---
2created: "2019-03-02T13:49:53.680954394Z" 2created: "2019-03-02T19:54:58.534200832Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
@@ -7,6 +7,6 @@ expression: "&result"
7[108; 181) '{ ...ter; }': () 7[108; 181) '{ ...ter; }': ()
8[118; 119) 'x': i32 8[118; 119) 'x': i32
9[145; 146) '1': i32 9[145; 146) '1': i32
10[156; 157) 'y': [unknown] 10[156; 157) 'y': {unknown}
11[169; 178) 'no_matter': [unknown] 11[169; 178) 'no_matter': {unknown}
12 12
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_static.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_static.snap
index 5d90f56ed..e6ae195c4 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_static.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_static.snap
@@ -1,14 +1,14 @@
1--- 1---
2created: "2019-02-25T08:20:17.807316Z" 2created: "2019-03-02T19:54:58.534478182Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
7[85; 280) '{ ...MUT; }': () 7[85; 280) '{ ...MUT; }': ()
8[173; 174) 'x': [unknown] 8[173; 174) 'x': {unknown}
9[177; 189) 'LOCAL_STATIC': [unknown] 9[177; 189) 'LOCAL_STATIC': {unknown}
10[199; 200) 'y': [unknown] 10[199; 200) 'y': {unknown}
11[203; 219) 'LOCAL_...IC_MUT': [unknown] 11[203; 219) 'LOCAL_...IC_MUT': {unknown}
12[229; 230) 'z': u32 12[229; 230) 'z': u32
13[233; 246) 'GLOBAL_STATIC': u32 13[233; 246) 'GLOBAL_STATIC': u32
14[256; 257) 'w': u32 14[256; 257) 'w': u32
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_1.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_1.snap
index 4b99788e4..56b63cbe7 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_1.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_1.snap
@@ -1,13 +1,13 @@
1--- 1---
2created: "2019-02-09T16:56:24.803326529Z" 2created: "2019-03-02T19:54:58.539061212Z"
3creator: [email protected].1 3creator: [email protected].3
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
7[54; 139) '{ ... } }': () 7[54; 139) '{ ... } }': ()
8[60; 137) 'match ... }': () 8[60; 137) 'match ... }': ()
9[66; 83) 'someth...nknown': Maybe<[unknown]> 9[66; 83) 'someth...nknown': Maybe<{unknown}>
10[94; 124) 'Maybe:...thing)': Maybe<[unknown]> 10[94; 124) 'Maybe:...thing)': Maybe<{unknown}>
11[106; 123) 'ref mu...ething': &mut [unknown] 11[106; 123) 'ref mu...ething': &mut {unknown}
12[128; 130) '()': () 12[128; 130) '()': ()
13 13
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_3.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_3.snap
index d15b77e17..fd47f80b7 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_3.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_3.snap
@@ -1,13 +1,13 @@
1--- 1---
2created: "2019-02-09T18:02:37.377591660Z" 2created: "2019-03-02T19:54:58.534201681Z"
3creator: [email protected].1 3creator: [email protected].3
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
7[18; 102) '{ ... } }': () 7[18; 102) '{ ... } }': ()
8[24; 100) 'match ... }': () 8[24; 100) 'match ... }': ()
9[42; 88) 'SizeSk...tail }': [unknown] 9[42; 88) 'SizeSk...tail }': {unknown}
10[76; 80) 'true': [unknown] 10[76; 80) 'true': {unknown}
11[82; 86) 'tail': [unknown] 11[82; 86) 'tail': {unknown}
12[92; 94) '{}': () 12[92; 94) '{}': ()
13 13
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_4.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_4.snap
index fb31883ce..14254c46a 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_4.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_4.snap
@@ -1,16 +1,16 @@
1--- 1---
2created: "2019-02-09T19:55:39.712470520Z" 2created: "2019-03-02T19:54:58.539815103Z"
3creator: [email protected].1 3creator: [email protected].3
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
7[25; 110) '{ ... } }': () 7[25; 110) '{ ... } }': ()
8[31; 108) 'match ... }': () 8[31; 108) 'match ... }': ()
9[37; 42) '*self': [unknown] 9[37; 42) '*self': {unknown}
10[38; 42) 'self': [unknown] 10[38; 42) 'self': {unknown}
11[53; 95) 'Borrow...), ..}': [unknown] 11[53; 95) 'Borrow...), ..}': {unknown}
12[74; 77) 'box': [unknown] 12[74; 77) 'box': {unknown}
13[78; 87) 'Primitive': [unknown] 13[78; 87) 'Primitive': {unknown}
14[88; 89) 'p': [unknown] 14[88; 89) 'p': {unknown}
15[99; 101) '{}': () 15[99; 101) '{}': ()
16 16
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_5.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_5.snap
index 6bbf59fb6..27853bf1a 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_5.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_5.snap
@@ -1,30 +1,30 @@
1--- 1---
2created: "2019-02-09T20:28:37.294693728Z" 2created: "2019-03-02T19:54:58.546324340Z"
3creator: [email protected].1 3creator: [email protected].3
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
7[27; 323) '{ ... } }': () 7[27; 323) '{ ... } }': ()
8[33; 321) 'for co... }': () 8[33; 321) 'for co... }': ()
9[37; 44) 'content': &[unknown] 9[37; 44) 'content': &{unknown}
10[48; 61) 'doesnt_matter': [unknown] 10[48; 61) 'doesnt_matter': {unknown}
11[62; 321) '{ ... }': () 11[62; 321) '{ ... }': ()
12[76; 80) 'name': &&[unknown] 12[76; 80) 'name': &&{unknown}
13[83; 167) 'if doe... }': &&[unknown] 13[83; 167) 'if doe... }': &&{unknown}
14[86; 99) 'doesnt_matter': bool 14[86; 99) 'doesnt_matter': bool
15[100; 129) '{ ... }': &&[unknown] 15[100; 129) '{ ... }': &&{unknown}
16[114; 119) 'first': &&[unknown] 16[114; 119) 'first': &&{unknown}
17[135; 167) '{ ... }': &&[unknown] 17[135; 167) '{ ... }': &&{unknown}
18[149; 157) '&content': &&[unknown] 18[149; 157) '&content': &&{unknown}
19[150; 157) 'content': &[unknown] 19[150; 157) 'content': &{unknown}
20[182; 189) 'content': &&[unknown] 20[182; 189) 'content': &&{unknown}
21[192; 314) 'if ICE... }': &&[unknown] 21[192; 314) 'if ICE... }': &&{unknown}
22[195; 232) 'ICE_RE..._VALUE': [unknown] 22[195; 232) 'ICE_RE..._VALUE': {unknown}
23[195; 248) 'ICE_RE...&name)': bool 23[195; 248) 'ICE_RE...&name)': bool
24[242; 247) '&name': &&&[unknown] 24[242; 247) '&name': &&&{unknown}
25[243; 247) 'name': &&[unknown] 25[243; 247) 'name': &&{unknown}
26[249; 277) '{ ... }': &&[unknown] 26[249; 277) '{ ... }': &&{unknown}
27[263; 267) 'name': &&[unknown] 27[263; 267) 'name': &&{unknown}
28[283; 314) '{ ... }': &[unknown] 28[283; 314) '{ ... }': &{unknown}
29[297; 304) 'content': &[unknown] 29[297; 304) 'content': &{unknown}
30 30
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_assoc_method.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_assoc_method.snap
index c09e1cf44..b36d0ecda 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_assoc_method.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_assoc_method.snap
@@ -1,17 +1,17 @@
1--- 1---
2created: "2019-03-02T13:49:53.756157395Z" 2created: "2019-03-02T19:54:58.553776959Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
7[87; 193) '{ ...t(); }': () 7[87; 193) '{ ...t(); }': ()
8[97; 99) 's1': S 8[97; 99) 's1': S
9[105; 121) 'Defaul...efault': [unknown] 9[105; 121) 'Defaul...efault': {unknown}
10[105; 123) 'Defaul...ault()': S 10[105; 123) 'Defaul...ault()': S
11[133; 135) 's2': [unknown] 11[133; 135) 's2': {unknown}
12[138; 148) 'S::default': [unknown] 12[138; 148) 'S::default': {unknown}
13[138; 150) 'S::default()': [unknown] 13[138; 150) 'S::default()': {unknown}
14[160; 162) 's3': [unknown] 14[160; 162) 's3': {unknown}
15[165; 188) '<S as ...efault': [unknown] 15[165; 188) '<S as ...efault': {unknown}
16[165; 190) '<S as ...ault()': [unknown] 16[165; 190) '<S as ...ault()': {unknown}
17 17
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap
index a71dbaf00..a41cb25ef 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap
@@ -1,11 +1,11 @@
1--- 1---
2created: "2019-03-02T13:49:53.771466423Z" 2created: "2019-03-02T19:54:58.552107676Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
7[33; 37) 'self': &[unknown] 7[33; 37) 'self': &{unknown}
8[92; 111) '{ ...d(); }': () 8[92; 111) '{ ...d(); }': ()
9[98; 99) 'S': S 9[98; 99) 'S': S
10[98; 108) 'S.method()': [unknown] 10[98; 108) 'S.method()': {unknown}
11 11
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_2.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_2.snap
index 4b28cb32a..6b9380254 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_2.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_2.snap
@@ -1,13 +1,13 @@
1--- 1---
2created: "2019-03-02T13:49:53.765202736Z" 2created: "2019-03-02T19:54:58.555503703Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
7[33; 37) 'self': &[unknown] 7[33; 37) 'self': &{unknown}
8[102; 127) '{ ...d(); }': () 8[102; 127) '{ ...d(); }': ()
9[108; 109) 'S': S<u32>(T) -> S<T> 9[108; 109) 'S': S<u32>(T) -> S<T>
10[108; 115) 'S(1u32)': S<u32> 10[108; 115) 'S(1u32)': S<u32>
11[108; 124) 'S(1u32...thod()': [unknown] 11[108; 124) 'S(1u32...thod()': {unknown}
12[110; 114) '1u32': u32 12[110; 114) '1u32': u32
13 13
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_scoped.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_scoped.snap
index f2cce656d..d53ae14fc 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_scoped.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_scoped.snap
@@ -1,15 +1,15 @@
1--- 1---
2created: "2019-03-02T15:41:07.568155273Z" 2created: "2019-03-02T19:54:58.562251445Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
7[63; 67) 'self': &[unknown] 7[63; 67) 'self': &{unknown}
8[169; 173) 'self': &[unknown] 8[169; 173) 'self': &{unknown}
9[300; 337) '{ ... }': () 9[300; 337) '{ ... }': ()
10[310; 311) 'S': S 10[310; 311) 'S': S
11[310; 320) 'S.method()': [unknown] 11[310; 320) 'S.method()': {unknown}
12[416; 454) '{ ... }': () 12[416; 454) '{ ... }': ()
13[426; 427) 'S': S 13[426; 427) 'S': S
14[426; 436) 'S.method()': [unknown] 14[426; 436) 'S.method()': {unknown}
15 15
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_simple.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_simple.snap
index 22e83722d..ff1c483f1 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_simple.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_simple.snap
@@ -1,14 +1,14 @@
1--- 1---
2created: "2019-03-02T15:41:07.562949721Z" 2created: "2019-03-02T19:54:58.558393608Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
7[31; 35) 'self': &[unknown] 7[31; 35) 'self': &{unknown}
8[110; 114) 'self': &[unknown] 8[110; 114) 'self': &{unknown}
9[170; 228) '{ ...i128 }': () 9[170; 228) '{ ...i128 }': ()
10[176; 178) 'S1': S1 10[176; 178) 'S1': S1
11[176; 187) 'S1.method()': [unknown] 11[176; 187) 'S1.method()': {unknown}
12[203; 205) 'S2': S2 12[203; 205) 'S2': S2
13[203; 214) 'S2.method()': [unknown] 13[203; 214) 'S2.method()': {unknown}
14 14
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_tuple_struct_generics.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_tuple_struct_generics.snap
index 783795cfd..5246794fe 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_tuple_struct_generics.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_tuple_struct_generics.snap
@@ -1,6 +1,6 @@
1--- 1---
2created: "2019-02-20T21:31:12.911275141Z" 2created: "2019-03-02T19:54:58.566211313Z"
3creator: [email protected].2 3creator: [email protected].3
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
@@ -17,7 +17,7 @@ expression: "&result"
17[124; 136) 'Option::Some': Some<&str>(T) -> Option<T> 17[124; 136) 'Option::Some': Some<&str>(T) -> Option<T>
18[124; 141) 'Option...e("x")': Option<&str> 18[124; 141) 'Option...e("x")': Option<&str>
19[137; 140) '"x"': &str 19[137; 140) '"x"': &str
20[147; 151) 'None': Option<[unknown]> 20[147; 151) 'None': Option<{unknown}>
21[161; 162) 'x': Option<i64> 21[161; 162) 'x': Option<i64>
22[178; 182) 'None': Option<i64> 22[178; 182) 'None': Option<i64>
23 23
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_unary_op.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_unary_op.snap
index 5021d0eeb..ce0d3c60d 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_unary_op.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_unary_op.snap
@@ -1,8 +1,8 @@
1--- 1---
2created: "2019-01-28T14:51:16.185273502+00:00" 2created: "2019-03-02T19:54:58.571163594Z"
3creator: [email protected] 3creator: [email protected]
4expression: "&result"
5source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result"
6--- 6---
7[27; 28) 'x': SomeType 7[27; 28) 'x': SomeType
8[40; 272) '{ ...lo"; }': () 8[40; 272) '{ ...lo"; }': ()
@@ -37,12 +37,12 @@ source: crates/ra_hir/src/ty/tests.rs
37[213; 217) '3.14': f64 37[213; 217) '3.14': f64
38[223; 225) '!3': i32 38[223; 225) '!3': i32
39[224; 225) '3': i32 39[224; 225) '3': i32
40[231; 233) '-x': [unknown] 40[231; 233) '-x': {unknown}
41[232; 233) 'x': SomeType 41[232; 233) 'x': SomeType
42[239; 241) '!x': [unknown] 42[239; 241) '!x': {unknown}
43[240; 241) 'x': SomeType 43[240; 241) 'x': SomeType
44[247; 255) '-"hello"': [unknown] 44[247; 255) '-"hello"': {unknown}
45[248; 255) '"hello"': &str 45[248; 255) '"hello"': &str
46[261; 269) '!"hello"': [unknown] 46[261; 269) '!"hello"': {unknown}
47[262; 269) '"hello"': &str 47[262; 269) '"hello"': &str
48 48
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_with_multiple_trait_impls.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_with_multiple_trait_impls.snap
index 82c8bae58..a7704ecce 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__infer_with_multiple_trait_impls.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_with_multiple_trait_impls.snap
@@ -1,10 +1,10 @@
1--- 1---
2created: "2019-03-02T13:49:53.860659428Z" 2created: "2019-03-02T19:54:58.573565546Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result" 5expression: "&result"
6--- 6---
7[29; 33) 'self': [unknown] 7[29; 33) 'self': {unknown}
8[107; 198) '{ ...(S); }': () 8[107; 198) '{ ...(S); }': ()
9[117; 118) 'x': u32 9[117; 118) 'x': u32
10[126; 127) 'S': S 10[126; 127) 'S': S
@@ -12,8 +12,8 @@ expression: "&result"
12[144; 145) 'y': u64 12[144; 145) 'y': u64
13[153; 154) 'S': S 13[153; 154) 'S': S
14[153; 161) 'S.into()': u64 14[153; 161) 'S.into()': u64
15[171; 172) 'z': [unknown] 15[171; 172) 'z': {unknown}
16[175; 192) 'Into::...::into': [unknown] 16[175; 192) 'Into::...::into': {unknown}
17[175; 195) 'Into::...nto(S)': [unknown] 17[175; 195) 'Into::...nto(S)': {unknown}
18[193; 194) 'S': S 18[193; 194) 'S': S
19 19
diff --git a/crates/ra_hir/src/ty/snapshots/tests__no_panic_on_field_of_enum.snap b/crates/ra_hir/src/ty/snapshots/tests__no_panic_on_field_of_enum.snap
index b6f404b4c..cf0dc719e 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__no_panic_on_field_of_enum.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__no_panic_on_field_of_enum.snap
@@ -1,11 +1,11 @@
1--- 1---
2created: "2019-01-22T14:45:00.058678600+00:00" 2created: "2019-03-02T19:54:58.571647281Z"
3creator: [email protected] 3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs
4expression: "&result" 5expression: "&result"
5source: "crates\\ra_hir\\src\\ty\\tests.rs"
6--- 6---
7[20; 21) 'x': X 7[20; 21) 'x': X
8[26; 47) '{ ...eld; }': () 8[26; 47) '{ ...eld; }': ()
9[32; 33) 'x': X 9[32; 33) 'x': X
10[32; 44) 'x.some_field': [unknown] 10[32; 44) 'x.some_field': {unknown}
11 11
diff --git a/crates/ra_hir/src/ty/snapshots/tests__recursive_vars.snap b/crates/ra_hir/src/ty/snapshots/tests__recursive_vars.snap
index c3227ff7e..1a4388b50 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__recursive_vars.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__recursive_vars.snap
@@ -1,14 +1,14 @@
1--- 1---
2created: "2019-01-26T22:42:22.329980185+00:00" 2created: "2019-03-02T19:54:58.571823250Z"
3creator: [email protected] 3creator: [email protected]
4expression: "&result"
5source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result"
6--- 6---
7[11; 48) '{ ...&y]; }': () 7[11; 48) '{ ...&y]; }': ()
8[21; 22) 'y': &[unknown] 8[21; 22) 'y': &{unknown}
9[25; 32) 'unknown': &[unknown] 9[25; 32) 'unknown': &{unknown}
10[38; 45) '[y, &y]': [&&[unknown]] 10[38; 45) '[y, &y]': [&&{unknown}]
11[39; 40) 'y': &[unknown] 11[39; 40) 'y': &{unknown}
12[42; 44) '&y': &&[unknown] 12[42; 44) '&y': &&{unknown}
13[43; 44) 'y': &[unknown] 13[43; 44) 'y': &{unknown}
14 14
diff --git a/crates/ra_hir/src/ty/snapshots/tests__recursive_vars_2.snap b/crates/ra_hir/src/ty/snapshots/tests__recursive_vars_2.snap
index de124da5b..444644639 100644
--- a/crates/ra_hir/src/ty/snapshots/tests__recursive_vars_2.snap
+++ b/crates/ra_hir/src/ty/snapshots/tests__recursive_vars_2.snap
@@ -1,21 +1,21 @@
1--- 1---
2created: "2019-01-26T22:42:22.331805845+00:00" 2created: "2019-03-02T19:54:58.575200890Z"
3creator: [email protected] 3creator: [email protected]
4expression: "&result"
5source: crates/ra_hir/src/ty/tests.rs 4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result"
6--- 6---
7[11; 80) '{ ...x)]; }': () 7[11; 80) '{ ...x)]; }': ()
8[21; 22) 'x': &&[unknown] 8[21; 22) 'x': &&{unknown}
9[25; 32) 'unknown': &&[unknown] 9[25; 32) 'unknown': &&{unknown}
10[42; 43) 'y': &&[unknown] 10[42; 43) 'y': &&{unknown}
11[46; 53) 'unknown': &&[unknown] 11[46; 53) 'unknown': &&{unknown}
12[59; 77) '[(x, y..., &x)]': [(&&[unknown], &&[unknown])] 12[59; 77) '[(x, y..., &x)]': [(&&{unknown}, &&{unknown})]
13[60; 66) '(x, y)': (&&[unknown], &&[unknown]) 13[60; 66) '(x, y)': (&&{unknown}, &&{unknown})
14[61; 62) 'x': &&[unknown] 14[61; 62) 'x': &&{unknown}
15[64; 65) 'y': &&[unknown] 15[64; 65) 'y': &&{unknown}
16[68; 76) '(&y, &x)': (&&&[unknown], &&&[unknown]) 16[68; 76) '(&y, &x)': (&&&{unknown}, &&&{unknown})
17[69; 71) '&y': &&&[unknown] 17[69; 71) '&y': &&&{unknown}
18[70; 71) 'y': &&[unknown] 18[70; 71) 'y': &&{unknown}
19[73; 75) '&x': &&&[unknown] 19[73; 75) '&x': &&&{unknown}
20[74; 75) 'x': &&[unknown] 20[74; 75) 'x': &&{unknown}
21 21