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:
bors 2020-12-15 04:06:51 +00:00
commit e1cce06e4f
2 changed files with 134 additions and 47 deletions

View 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 }
}