-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Can't document rustc-macro crates #36820
Comments
@nrc curious about your thoughts on how we might fix this. The problem here is that
The former seems reasonable for now but eventually rustc-macro crates will grow to perhaps having interesting APIs in them, right? The latter unfortunately doesn't have a great way to do so today but I could always add a random flag to the session. |
Depending on how long "eventually" is we might be best waiting to separate Rustdoc out from the compiler. It might still need something hacked in to the session though (depending on how it is implemented). Given that it is Rustdoc, I'd not be opposed to the hackiest of hacks to get this working. |
Agreed on a quick hack to get this working if a real fix is further out - not being able to document any crate that transitively depends on serde_derive is a pretty big blocker. I don't think anybody cares whether serde_derive itself is rustdocumented at this point. |
I would really like to separate rustdoc from the compiler. It's on my On Thu, Sep 29, 2016 at 5:03 PM, David Tolnay [email protected]
|
This commit adds a "hack" to the session to track whether we're a rustdoc session or not. If we're rustdoc then we skip the expansion to add the rustc-macro infrastructure. Closes rust-lang#36820
rustdoc: Fix documenting rustc-macro crates This commit adds a "hack" to the session to track whether we're a rustdoc session or not. If we're rustdoc then we skip the expansion to add the rustc-macro infrastructure. Closes #36820
This is vaguely similar to rust-lang/cargo#3132 and rust-lang/rust#36820, except it just started again today, and those issues were closed several days ago. We don't do this on stable, because we have multiple stable platforms and we need them to build fast.
Originally filed as rust-lang/cargo#3132 by @dtolnay
Reported by @neon64 in serde-rs/serde#567:
cargo doc
cannot document any rustc_macro crate or any crate depending on a rustc_macro crate.https://docs.rs/crate/serde_derive/0.8.10/builds/31363
@alexcrichton I don't know Cargo well enough to tell whether this is a cargo issue or a rustc issue or a rustdoc issue so sorry if this is filed in the wrong place.
The text was updated successfully, but these errors were encountered: