aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/hir_ty/src/tests/method_resolution.rs47
1 files changed, 23 insertions, 24 deletions
diff --git a/crates/hir_ty/src/tests/method_resolution.rs b/crates/hir_ty/src/tests/method_resolution.rs
index 751a7ce54..6e74763ca 100644
--- a/crates/hir_ty/src/tests/method_resolution.rs
+++ b/crates/hir_ty/src/tests/method_resolution.rs
@@ -1236,7 +1236,6 @@ pub trait Deref {
1236} 1236}
1237mod a { 1237mod a {
1238 pub struct Foo(pub char); 1238 pub struct Foo(pub char);
1239
1240 impl Foo { 1239 impl Foo {
1241 pub fn mango(&self) -> char { 1240 pub fn mango(&self) -> char {
1242 self.0 1241 self.0
@@ -1266,29 +1265,29 @@ mod b {
1266 "#, 1265 "#,
1267 expect![[r#" 1266 expect![[r#"
1268 67..71 'self': &Self 1267 67..71 'self': &Self
1269 173..177 'self': &Foo 1268 168..172 'self': &Foo
1270 187..217 '{ ... }': char 1269 182..212 '{ ... }': char
1271 201..205 'self': &Foo 1270 196..200 'self': &Foo
1272 201..207 'self.0': char 1271 196..202 'self.0': char
1273 293..324 '{ ... }': Bar 1272 288..319 '{ ... }': Bar
1274 307..311 'Self': Bar(i32) -> Bar 1273 302..306 'Self': Bar(i32) -> Bar
1275 307..314 'Self(0)': Bar 1274 302..309 'Self(0)': Bar
1276 312..313 '0': i32 1275 307..308 '0': i32
1277 343..347 'self': &Bar 1276 338..342 'self': &Bar
1278 356..386 '{ ... }': i32 1277 351..381 '{ ... }': i32
1279 370..374 'self': &Bar 1278 365..369 'self': &Bar
1280 370..376 'self.0': i32 1279 365..371 'self.0': i32
1281 470..474 'self': &Bar 1280 465..469 'self': &Bar
1282 484..517 '{ ... }': &Foo 1281 479..512 '{ ... }': &Foo
1283 498..507 '&Foo('z')': &Foo 1282 493..502 '&Foo('z')': &Foo
1284 499..502 'Foo': Foo(char) -> Foo 1283 494..497 'Foo': Foo(char) -> Foo
1285 499..507 'Foo('z')': Foo 1284 494..502 'Foo('z')': Foo
1286 503..506 ''z'': char 1285 498..501 ''z'': char
1287 547..600 '{ ... }': () 1286 542..595 '{ ... }': ()
1288 561..562 'x': char 1287 556..557 'x': char
1289 565..583 'super:...r::new': fn new() -> Bar 1288 560..578 'super:...r::new': fn new() -> Bar
1290 565..585 'super:...:new()': Bar 1289 560..580 'super:...:new()': Bar
1291 565..593 'super:...ango()': char 1290 560..588 'super:...ango()': char
1292 "#]], 1291 "#]],
1293 ) 1292 )
1294} 1293}