Auto merge of #77700 - bugadani:rustdoc-link-cache, r=jyn514
Rustdoc: Cache resolved links in current module A step towards #77681
This commit is contained in:
commit
e1cce06e4f
2 changed files with 134 additions and 47 deletions
14
src/test/rustdoc/intra-link-self-cache.rs
Normal file
14
src/test/rustdoc/intra-link-self-cache.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#![crate_name = "foo"]
|
||||
// @has foo/enum.E1.html '//a/@href' '../foo/enum.E1.html#variant.A'
|
||||
|
||||
/// [Self::A::b]
|
||||
pub enum E1 {
|
||||
A { b: usize }
|
||||
}
|
||||
|
||||
// @has foo/enum.E2.html '//a/@href' '../foo/enum.E2.html#variant.A'
|
||||
|
||||
/// [Self::A::b]
|
||||
pub enum E2 {
|
||||
A { b: usize }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue