-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc: Allow inlining of reexported crates and crate items #46296
Comments
Some mentoring notes. I'm planning on walking @DebugSteven through this. First, this is only relevant for 2015 edition, since 2018 edition won't have it as an The relevant spot where rust/src/librustdoc/clean/mod.rs Lines 3506 to 3519 in 6ecad33
Fortunately, the spot where The rough idea i have for the new code goes like this:
That middle part is where it gets interesting, because Def::Mod(DefId {
krate: self.cnum,
index: CRATE_DEF_INDEX,
}) All the rest of the arguments to To check the rust/src/librustdoc/clean/mod.rs Lines 3527 to 3533 in 6ecad33
This is performing similar checks to what we need, though we'll need to tweak them slightly. The |
…umeGomez rustdoc: Allow inlining of reexported crates and crate items Fixes rust-lang#46296 This PR checks for when a `pub extern crate` statement has a `#[doc(inline)]` attribute & inlines its contents. Code is based off of the inlining statements for `pub use` statements.
…umeGomez rustdoc: Allow inlining of reexported crates and crate items Fixes rust-lang#46296 This PR checks for when a `pub extern crate` statement has a `#[doc(inline)]` attribute & inlines its contents. Code is based off of the inlining statements for `pub use` statements.
Could show
foo
as if it was a module.Could inline the reexported items as if
foo
was a module.The text was updated successfully, but these errors were encountered: