mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
fixes broken tests
This commit is contained in:
parent
7b952cb1aa
commit
c3ad945d9b
2 changed files with 5 additions and 5 deletions
|
@ -308,7 +308,7 @@ fn test() {
|
||||||
pub mod foo {
|
pub mod foo {
|
||||||
pub struct S;
|
pub struct S;
|
||||||
impl S {
|
impl S {
|
||||||
fn thing() -> i128 { 0 }
|
pub fn thing() -> i128 { 0 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"#,
|
"#,
|
||||||
|
|
|
@ -823,10 +823,10 @@ fn test_hover_infer_associated_method_exact() {
|
||||||
check(
|
check(
|
||||||
r#"
|
r#"
|
||||||
mod wrapper {
|
mod wrapper {
|
||||||
struct Thing { x: u32 }
|
pub struct Thing { x: u32 }
|
||||||
|
|
||||||
impl Thing {
|
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
|
```rust
|
||||||
fn new() -> Thing
|
pub fn new() -> Thing
|
||||||
```
|
```
|
||||||
"#]],
|
"#]],
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue