From 66d295d72df72640573522df527deb90abc94fcd Mon Sep 17 00:00:00 2001 From: cynecx Date: Sat, 20 Mar 2021 19:47:14 +0100 Subject: hir_ty: fix visibility in infer_inherent_method test --- crates/hir_ty/src/tests/simple.rs | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'crates/hir_ty/src/tests') 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() { mod b { impl super::A { - fn bar(&self, x: u64) -> i64 {} + pub fn bar(&self, x: u64) -> i64 {} } } @@ -1117,21 +1117,21 @@ fn infer_inherent_method() { 31..35 'self': A 37..38 'x': u32 52..54 '{}': () - 102..106 'self': &A - 108..109 'x': u64 - 123..125 '{}': () - 143..144 'a': A - 149..197 '{ ...(1); }': () - 155..156 'a': A - 155..163 'a.foo(1)': i32 - 161..162 '1': u32 - 169..180 '(&a).bar(1)': i64 - 170..172 '&a': &A - 171..172 'a': A - 178..179 '1': u64 - 186..187 'a': A - 186..194 'a.bar(1)': i64 - 192..193 '1': u64 + 106..110 'self': &A + 112..113 'x': u64 + 127..129 '{}': () + 147..148 'a': A + 153..201 '{ ...(1); }': () + 159..160 'a': A + 159..167 'a.foo(1)': i32 + 165..166 '1': u32 + 173..184 '(&a).bar(1)': i64 + 174..176 '&a': &A + 175..176 'a': A + 182..183 '1': u64 + 190..191 'a': A + 190..198 'a.bar(1)': i64 + 196..197 '1': u64 "#]], ); } -- cgit v1.2.3