Rollup merge of #80881 - jyn514:intra-doc-self, r=GuillaumeGomez
Fix intra-doc links to `Self` and `crate` Closes https://github.com/rust-lang/rust/issues/77732.
This commit is contained in:
commit
6e2249d2fd
3 changed files with 26 additions and 21 deletions
|
|
@ -1,4 +1,7 @@
|
|||
#![crate_name = "cross_crate_self"]
|
||||
|
||||
/// Link to [Self]
|
||||
/// Link to [crate]
|
||||
pub struct S;
|
||||
|
||||
impl S {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
// aux-build:self.rs
|
||||
// build-aux-docs
|
||||
|
||||
extern crate cross_crate_self;
|
||||
|
||||
// @has self/struct.S.html '//a[@href="../self/struct.S.html#method.f"]' "Self::f"
|
||||
// @has self/struct.S.html '//a[@href="../self/struct.S.html"]' "Self"
|
||||
// @has self/struct.S.html '//a[@href="../cross_crate_self/index.html"]' "crate"
|
||||
pub use cross_crate_self::S;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue