diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-10 12:49:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-10 12:49:18 +0200 |
| commit | 6d41be27005603e0e39cc8e3fefd50cfbc565e0e (patch) | |
| tree | b40725da4232cd197071e6bcf1e76841c658f512 /compiler/rustc_index | |
| parent | df1b5d3cc2117f1ee96abca25678bc5f5604d450 (diff) | |
| parent | ff86fa50fbb71073ec828e82fbfa431a3bdac2b1 (diff) | |
| download | rust-6d41be27005603e0e39cc8e3fefd50cfbc565e0e.tar.gz rust-6d41be27005603e0e39cc8e3fefd50cfbc565e0e.zip | |
Rollup merge of #130625 - heiseish:issue-124028-fix, r=jieyouxu
Fix a few relative paths in rustc doc ## Changes - Don't inline the doc for re-exporting some structs that have relative paths in doc. ## Context See #124028. - Most of the relative links in rustdoc are there because of circular import (so syntax like `[MyType]: rustc_foo::bar` is difficult to achieve when we cannot import `rustc_xxx` due to circular import) - Here, I disable new links for re-exports. I think it's fine for re-exported items in `hir::*`. - There is a few more relative links in other `rustc` crates, however they are not addressed in this PR, as they are not re-exported and/so the relative paths are working. Closes #124028. r? `@fmease` Let me know if I miss anything or there's any other way to address this issue.
Diffstat (limited to 'compiler/rustc_index')
| -rw-r--r-- | compiler/rustc_index/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_index/src/lib.rs b/compiler/rustc_index/src/lib.rs index 52f354b8eca..cae55230b06 100644 --- a/compiler/rustc_index/src/lib.rs +++ b/compiler/rustc_index/src/lib.rs @@ -17,6 +17,7 @@ mod vec; pub use idx::Idx; pub use rustc_index_macros::newtype_index; pub use slice::IndexSlice; +#[doc(no_inline)] pub use vec::IndexVec; /// Type size assertion. The first argument is a type and the second argument is its expected size. |
