-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fix main.js for gtk-rs #59958
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
Fix main.js for gtk-rs #59958
Conversation
Can you add a comment explaining what it's doing and why? |
What is gtk-rs doing that requires this fix? |
It's checking that the values exist before using them. |
Is that only needed by gtk-rs, or would all crates benefit? Why or why not? |
I assume that if we had this issue with gtk-rs, other crates might encounter it as well. |
What issue though? Is there an upstream issue you can link to? Why is gtk-rs hitting this and (apparently) no other crates? |
I think it's because we're generating a lot of crates at once, which is rarely done outside (or just locally). Another difference is that we generate without crates' docs without minification and then run the minification. However, the process is the same as in rustdoc so chances that it comes from there are quite small. |
oops |
What do you mean by "a lot of crates at once"? That sounds to me like a regular
In other words, you run your crates' docs with To be clear, the actual change in this PR is small and not even that controversial. What i'm concerned about is that it looked like there was no investigation into what was going on, and that it was framed as a fix specifically for |
ping from triage @QuietMisdreavus what's the status of this? |
I never heard back from @GuillaumeGomez about what gtk-rs was doing that made this change necessary. I'm convinced this is papering up a different bug in the |
I wasn't able to determine if the bug was coming from rustdoc or my gtk-rs minification process... I can't use a workspace system so I'm stuck with using this fix for the moment. |
I'm closing this PR as the relevant procedure should likely be followed here; see #59958 (comment). Please reopen once that investigation is conducted and the PR description is updated. |
We need it for gtk-rs. :)
r? @rust-lang/rustdoc