mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Fix standard library doclinks not going to the correct page
This commit is contained in:
parent
5051717856
commit
8ed86fc25d
3 changed files with 103 additions and 55 deletions
|
@ -4125,20 +4125,20 @@ foo_macro!(
|
|||
);
|
||||
"#,
|
||||
expect![[r#"
|
||||
*[`Foo`]*
|
||||
*[`Foo`]*
|
||||
|
||||
```rust
|
||||
test
|
||||
```
|
||||
```rust
|
||||
test
|
||||
```
|
||||
|
||||
```rust
|
||||
pub struct Foo
|
||||
```
|
||||
```rust
|
||||
pub struct Foo
|
||||
```
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
Doc comment for [`Foo`](https://docs.rs/test/*/test/struct.Foo.html)
|
||||
"#]],
|
||||
Doc comment for [`Foo`](https://doc.rust-lang.org/nightly/test/struct.Foo.html)
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -4150,19 +4150,19 @@ fn hover_intra_in_attr() {
|
|||
pub struct Foo;
|
||||
"#,
|
||||
expect![[r#"
|
||||
*[`Foo`]*
|
||||
*[`Foo`]*
|
||||
|
||||
```rust
|
||||
test
|
||||
```
|
||||
```rust
|
||||
test
|
||||
```
|
||||
|
||||
```rust
|
||||
pub struct Foo
|
||||
```
|
||||
```rust
|
||||
pub struct Foo
|
||||
```
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
Doc comment for [`Foo`](https://docs.rs/test/*/test/struct.Foo.html)
|
||||
"#]],
|
||||
Doc comment for [`Foo`](https://doc.rust-lang.org/nightly/test/struct.Foo.html)
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue