about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorKornel <kornel@geekhood.net>2025-07-03 15:13:19 +0100
committerKornel <kornel@geekhood.net>2025-07-28 13:34:03 +0100
commit276c4238a7ee0fa472c951f357642778d60a3bdb (patch)
tree73339f8faae35ba9e86bcadf535c28dbf4271d98 /src/doc
parent0813cc9dcf755bb04ef396bfa94218b56bb08c4a (diff)
Support multiple crate versions in --extern-html-root-url
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/rustdoc/src/unstable-features.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/doc/rustdoc/src/unstable-features.md b/src/doc/rustdoc/src/unstable-features.md
index 27910ad0ab7..7bd2970eee7 100644
--- a/src/doc/rustdoc/src/unstable-features.md
+++ b/src/doc/rustdoc/src/unstable-features.md
@@ -395,6 +395,12 @@ flags to control that behavior. When the `--extern-html-root-url` flag is given
 one of your dependencies, rustdoc use that URL for those docs. Keep in mind that if those docs exist
 in the output directory, those local docs will still override this flag.
 
+The names in this flag are first matched against the names given in the `--extern name=` flags,
+which allows selecting between multiple crates with the same name (e.g. multiple versions of
+the same crate). For transitive dependencies that haven't been loaded via an `--extern` flag, matching
+falls backs to using crate names only, without ability to distinguish between multiple crates with
+the same name.
+
 ## `-Z force-unstable-if-unmarked`
 
 Using this flag looks like this: