Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/hover/tests.rs')
-rw-r--r--crates/ide/src/hover/tests.rs72
1 files changed, 66 insertions, 6 deletions
diff --git a/crates/ide/src/hover/tests.rs b/crates/ide/src/hover/tests.rs
index 7f3644c08d..501dd642a8 100644
--- a/crates/ide/src/hover/tests.rs
+++ b/crates/ide/src/hover/tests.rs
@@ -4700,6 +4700,10 @@ fn hover_lifetime() {
*'lifetime*
```rust
+ ra_test_fixture::foo
+ ```
+
+ ```rust
'lifetime
```
"#]],
@@ -4730,6 +4734,10 @@ impl<T: TraitA + TraitB> Foo<T$0> where T: Sized {}
*T*
```rust
+ ra_test_fixture::Foo
+ ```
+
+ ```rust
T: TraitA + TraitB
```
"#]],
@@ -4744,6 +4752,10 @@ impl<T> Foo<T$0> {}
*T*
```rust
+ ra_test_fixture::Foo
+ ```
+
+ ```rust
T
```
"#]],
@@ -4758,6 +4770,10 @@ impl<T: 'static> Foo<T$0> {}
*T*
```rust
+ ra_test_fixture::Foo
+ ```
+
+ ```rust
T: 'static
```
"#]],
@@ -4778,6 +4794,10 @@ impl<T$0: Trait> Foo<T> {}
*T*
```rust
+ ra_test_fixture::Foo
+ ```
+
+ ```rust
T: Trait
```
"#]],
@@ -4793,6 +4813,10 @@ impl<T$0: Trait + ?Sized> Foo<T> {}
*T*
```rust
+ ra_test_fixture::Foo
+ ```
+
+ ```rust
T: Trait + ?Sized
```
"#]],
@@ -4813,6 +4837,10 @@ fn foo<T$0>() {}
*T*
```rust
+ ra_test_fixture::foo
+ ```
+
+ ```rust
T
```
@@ -4834,6 +4862,10 @@ fn foo<T$0: Sized>() {}
*T*
```rust
+ ra_test_fixture::foo
+ ```
+
+ ```rust
T
```
@@ -4855,6 +4887,10 @@ fn foo<T$0: ?Sized>() {}
*T*
```rust
+ ra_test_fixture::foo
+ ```
+
+ ```rust
T: ?Sized
```
@@ -4877,6 +4913,10 @@ fn foo<T$0: Trait>() {}
*T*
```rust
+ ra_test_fixture::foo
+ ```
+
+ ```rust
T: Trait
```
@@ -4899,6 +4939,10 @@ fn foo<T$0: Trait + Sized>() {}
*T*
```rust
+ ra_test_fixture::foo
+ ```
+
+ ```rust
T: Trait
```
@@ -4921,6 +4965,10 @@ fn foo<T$0: Trait + ?Sized>() {}
*T*
```rust
+ ra_test_fixture::foo
+ ```
+
+ ```rust
T: Trait + ?Sized
```
@@ -4942,6 +4990,10 @@ fn foo<T$0: ?Sized + Sized + Sized>() {}
*T*
```rust
+ ra_test_fixture::foo
+ ```
+
+ ```rust
T
```
@@ -4964,6 +5016,10 @@ fn foo<T$0: Sized + ?Sized + Sized + Trait>() {}
*T*
```rust
+ ra_test_fixture::foo
+ ```
+
+ ```rust
T: Trait
```
@@ -5011,6 +5067,10 @@ impl<const LEN: usize> Foo<LEN$0> {}
*LEN*
```rust
+ ra_test_fixture::Foo
+ ```
+
+ ```rust
const LEN: usize
```
"#]],
@@ -7857,7 +7917,7 @@ fn test() {
*foo*
```rust
- ra_test_fixture::S
+ ra_test_fixture::m::S
```
```rust
@@ -7886,7 +7946,7 @@ fn test() {
*foo*
```rust
- ra_test_fixture::S
+ ra_test_fixture::m::S
```
```rust
@@ -7916,7 +7976,7 @@ mod m {
*foo*
```rust
- ra_test_fixture::S
+ ra_test_fixture::m::inner::S
```
```rust
@@ -7946,7 +8006,7 @@ fn test() {
*A*
```rust
- ra_test_fixture::S
+ ra_test_fixture::m::S
```
```rust
@@ -7975,7 +8035,7 @@ fn test() {
*A*
```rust
- ra_test_fixture::S
+ ra_test_fixture::m::S
```
```rust
@@ -8005,7 +8065,7 @@ mod m {
*A*
```rust
- ra_test_fixture::S
+ ra_test_fixture::m::inner::S
```
```rust