diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/hir_ty/src/tests/simple.rs | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/crates/hir_ty/src/tests/simple.rs b/crates/hir_ty/src/tests/simple.rs index bcc43ed70..361cd6302 100644 --- a/crates/hir_ty/src/tests/simple.rs +++ b/crates/hir_ty/src/tests/simple.rs | |||
@@ -1103,7 +1103,7 @@ fn infer_inherent_method() { | |||
1103 | 1103 | ||
1104 | mod b { | 1104 | mod b { |
1105 | impl super::A { | 1105 | impl super::A { |
1106 | fn bar(&self, x: u64) -> i64 {} | 1106 | pub fn bar(&self, x: u64) -> i64 {} |
1107 | } | 1107 | } |
1108 | } | 1108 | } |
1109 | 1109 | ||
@@ -1117,21 +1117,21 @@ fn infer_inherent_method() { | |||
1117 | 31..35 'self': A | 1117 | 31..35 'self': A |
1118 | 37..38 'x': u32 | 1118 | 37..38 'x': u32 |
1119 | 52..54 '{}': () | 1119 | 52..54 '{}': () |
1120 | 102..106 'self': &A | 1120 | 106..110 'self': &A |
1121 | 108..109 'x': u64 | 1121 | 112..113 'x': u64 |
1122 | 123..125 '{}': () | 1122 | 127..129 '{}': () |
1123 | 143..144 'a': A | 1123 | 147..148 'a': A |
1124 | 149..197 '{ ...(1); }': () | 1124 | 153..201 '{ ...(1); }': () |
1125 | 155..156 'a': A | 1125 | 159..160 'a': A |
1126 | 155..163 'a.foo(1)': i32 | 1126 | 159..167 'a.foo(1)': i32 |
1127 | 161..162 '1': u32 | 1127 | 165..166 '1': u32 |
1128 | 169..180 '(&a).bar(1)': i64 | 1128 | 173..184 '(&a).bar(1)': i64 |
1129 | 170..172 '&a': &A | 1129 | 174..176 '&a': &A |
1130 | 171..172 'a': A | 1130 | 175..176 'a': A |
1131 | 178..179 '1': u64 | 1131 | 182..183 '1': u64 |
1132 | 186..187 'a': A | 1132 | 190..191 'a': A |
1133 | 186..194 'a.bar(1)': i64 | 1133 | 190..198 'a.bar(1)': i64 |
1134 | 192..193 '1': u64 | 1134 | 196..197 '1': u64 |
1135 | "#]], | 1135 | "#]], |
1136 | ); | 1136 | ); |
1137 | } | 1137 | } |