Skip to content

Commit 2e3de05

Browse files
authored
Unrolled build for rust-lang#130625
Rollup merge of rust-lang#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 rust-lang#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 rust-lang#124028. r​? `@fmease` Let me know if I miss anything or there's any other way to address this issue.
2 parents de19f2b + ff86fa5 commit 2e3de05

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_hir/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pub mod weak_lang_items;
3333
#[cfg(test)]
3434
mod tests;
3535

36+
#[doc(no_inline)]
3637
pub use hir::*;
3738
pub use hir_id::*;
3839
pub use lang_items::{LangItem, LanguageItems};

compiler/rustc_index/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ mod vec;
1717
pub use idx::Idx;
1818
pub use rustc_index_macros::newtype_index;
1919
pub use slice::IndexSlice;
20+
#[doc(no_inline)]
2021
pub use vec::IndexVec;
2122

2223
/// Type size assertion. The first argument is a type and the second argument is its expected size.

0 commit comments

Comments
 (0)