Rollup merge of #104364 - petrochenkov:docice2, r=GuillaumeGomez
rustdoc: Resolve doc links in external traits having local impls For external impls it was done in https://github.com/rust-lang/rust/pull/103192 right away, but the local impl case was forgotten. Fixes https://github.com/rust-lang/rust/issues/104145.
This commit is contained in:
commit
dc869fcfb2
3 changed files with 27 additions and 1 deletions
14
src/test/rustdoc/intra-doc/issue-104145.rs
Normal file
14
src/test/rustdoc/intra-doc/issue-104145.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Doc links in `Trait`'s methods are resolved because it has a local impl.
|
||||
|
||||
// aux-build:issue-103463-aux.rs
|
||||
|
||||
extern crate issue_103463_aux;
|
||||
use issue_103463_aux::Trait;
|
||||
|
||||
pub struct LocalType;
|
||||
|
||||
impl Trait for LocalType {
|
||||
fn method() {}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue