mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
hir_ty: fix visibility in infer_inherent_method test
This commit is contained in:
parent
34bb13e293
commit
66d295d72d
@ -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
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user