Fix standard library doclinks not going to the correct page

This commit is contained in:
Lukas Wirth 2021-10-20 16:21:33 +02:00
parent 5051717856
commit 8ed86fc25d
3 changed files with 103 additions and 55 deletions

View file

@ -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)
"#]],
);
}