about summary refs log tree commit diff
path: root/src/doc/rustdoc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-02 15:11:15 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-06 22:02:05 +0200
commit3bfa2eb9f09035dcd779910b77880252baaf2ef5 (patch)
tree5c968a7c3f2e66ceb213e352b914008e7653e868 /src/doc/rustdoc
parentfd6b01f0e993eecd1d0eecc00b6cb53f6e0d0c0c (diff)
downloadrust-3bfa2eb9f09035dcd779910b77880252baaf2ef5.tar.gz
rust-3bfa2eb9f09035dcd779910b77880252baaf2ef5.zip
Add rustdoc documentation about unstable feature "jump to def"
Diffstat (limited to 'src/doc/rustdoc')
-rw-r--r--src/doc/rustdoc/src/unstable-features.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/doc/rustdoc/src/unstable-features.md b/src/doc/rustdoc/src/unstable-features.md
index 537ab48bbfc..30b3d6defb4 100644
--- a/src/doc/rustdoc/src/unstable-features.md
+++ b/src/doc/rustdoc/src/unstable-features.md
@@ -567,3 +567,10 @@ $ rustdoc src/lib.rs -Z unstable-options \
 
 The example above check every well known names (`target_os`, `doc`, `test`, ... via `names()`)
 and check the values of `feature`: `foo` and `bar`.
+
+### `--generate-link-to-definition`: Generate links on types in source code
+
+ * Tracking issue: [#89095](https://github.com/rust-lang/rust/issues/89095)
+
+This flag enables the generation of links in the source code pages which allow the reader
+to jump to a type definition.