From 274e97c6be538d12f838d284781713a92494ff7e Mon Sep 17 00:00:00 2001 From: Urgau Date: Thu, 20 Aug 2026 18:44:38 +0200 Subject: [PATCH] Fix rustdoc remapping `documentation` scope documentation --- src/doc/rustdoc/src/unstable-features.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/doc/rustdoc/src/unstable-features.md b/src/doc/rustdoc/src/unstable-features.md index 3b5bf4ae080dc..ab317ba1048a4 100644 --- a/src/doc/rustdoc/src/unstable-features.md +++ b/src/doc/rustdoc/src/unstable-features.md @@ -812,8 +812,7 @@ Defines which scopes of paths should be remapped by --remap-path-prefix. `rustdoc` (and by extension `rustc`) have a special `documentation` remapping scope, it permits remapping source paths that ends up in the generated documentation. -Currently the scope can only be specified from `rustc`, due to the lack of an equivalent -`--remap-path-scope` flag in `rustc`. +It can specified with `--remap-path-scope=documentation`. ## `#[doc(cfg)]` and `#[doc(auto_cfg)]`