Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--crates/hir_ty/src/tests/method_resolution.rs2
-rw-r--r--crates/ide/src/hover/tests.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/crates/hir_ty/src/tests/method_resolution.rs b/crates/hir_ty/src/tests/method_resolution.rs
index 11bdfa85a9..9c0c00da3b 100644
--- a/crates/hir_ty/src/tests/method_resolution.rs
+++ b/crates/hir_ty/src/tests/method_resolution.rs
@@ -308,7 +308,7 @@ fn test() {
pub mod foo {
pub struct S;
impl S {
- fn thing() -> i128 { 0 }
+ pub fn thing() -> i128 { 0 }
}
}
"#,
diff --git a/crates/ide/src/hover/tests.rs b/crates/ide/src/hover/tests.rs
index f1d7d2791d..28dd2afa02 100644
--- a/crates/ide/src/hover/tests.rs
+++ b/crates/ide/src/hover/tests.rs
@@ -823,10 +823,10 @@ fn test_hover_infer_associated_method_exact() {
check(
r#"
mod wrapper {
- struct Thing { x: u32 }
+ pub struct Thing { x: u32 }
impl Thing {
- fn new() -> Thing { Thing { x: 0 } }
+ pub fn new() -> Thing { Thing { x: 0 } }
}
}
@@ -840,9 +840,9 @@ fn main() { let foo_test = wrapper::Thing::new$0(); }
```
```rust
- fn new() -> Thing
+ pub fn new() -> Thing
```
- "#]],
+ "#]],
)
}