-
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
A third of the time rustdoc takes to document windows-rs is <unknown>
#81251
Comments
I am still baffled what this could be.
So I don't know what this could possibly be. |
I can also reproduce on rust-lang/cargo@4de00d2, which works on linux and is overall easier to build.
There are no similar |
This is definitely not from rust/compiler/rustc_interface/src/passes.rs Line 1021 in 65767e5
RUSTC_LOG=rustc_interface doesn't show "Post-codegen" anyway.
|
The only places this is emitted in measureme are for https://github.com/rust-lang/measureme/blob/16688a5da98f403b2b7f1942564adf3361c99cff/analyzeme/src/stringtable.rs#L48 and https://github.com/rust-lang/measureme/blob/16688a5da98f403b2b7f1942564adf3361c99cff/analyzeme/src/stringtable.rs#L95. @michaelwoerister do you have any idea what could be going wrong here? |
@wesleywiser do you remember where you've seen this before? |
I had an theory that I ran by @jyn514 and they're testing it out: rustdoc never calls This seems to hold if we look at the |
@wesleywiser that did it!
|
I tried this code: microsoft/windows-docs-rs@3371c03
I expected to see this happen:
cargo rustdoc -- -Z self-profile
shows where the 50 minutes are being spent.Instead, this happened: Rustdoc completely loses 20 of the 50 minutes and gives up.
Here's the top 6 items from
summarize summarize
:Note that
<unknown>
is at the top.cc microsoft/windows-rs#420, #74590 (comment)
Meta
rustdoc --version
:rustdoc 1.51.0-nightly (a4cbb44ae 2021-01-20)
The text was updated successfully, but these errors were encountered: