about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-11-14 19:26:19 +0100
committerGitHub <noreply@github.com>2022-11-14 19:26:19 +0100
commitdc869fcfb22bfabae187578dcd10ba68348fdc93 (patch)
tree7be9784abf0aadd285b357d7d33189e473600486 /src/test/rustdoc
parent050ece6765bbbe068d5e456ad6e55c0806e63720 (diff)
parent8e81cc262e08e4c93df3ac9c1a3814372e4908c8 (diff)
downloadrust-dc869fcfb22bfabae187578dcd10ba68348fdc93.tar.gz
rust-dc869fcfb22bfabae187578dcd10ba68348fdc93.zip
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.
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/intra-doc/issue-104145.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/rustdoc/intra-doc/issue-104145.rs b/src/test/rustdoc/intra-doc/issue-104145.rs
new file mode 100644
index 00000000000..9ce36740d60
--- /dev/null
+++ b/src/test/rustdoc/intra-doc/issue-104145.rs
@@ -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() {}