-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 JSON: Fix ICE with pub extern crate self as <self_crate_name>
#100630
Conversation
| types::ItemEnum::AssocConst { .. } | ||
| types::ItemEnum::AssocType { .. } | ||
| types::ItemEnum::PrimitiveType(_) => true, | ||
types::ItemEnum::Module(_) | ||
| types::ItemEnum::ExternCrate { .. } | ||
types::ItemEnum::ExternCrate { .. } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised, I thought that the ExternCrate
was the issue. Oh well. Code is always surprising. :)
I'm still concern about this |
The underlying issue is reexport which bring same IDs into a same scope. We improved the problem recently thanks to #99287. But we still have the issue of the reexport renaming of an item in the current scope. |
Oh I see, here we have a |
The world (well, at least rustdoc) would very likely be much better if reexports weren't a thing. 🤣 |
@bors r+ |
Thanks for review! Probably good to rollup though? |
It can still be put in a rollup even if the priority hasn't been set to rollup. But in this case I think it's safe to just put it always in the rollup. @bors rollup |
Rollup of 4 pull requests Successful merges: - rust-lang#100243 (Remove opt_remap_env_constness from rustc_query_impl) - rust-lang#100625 (Add `IpDisplayBuffer` helper struct.) - rust-lang#100629 (Use `merged_ty` method instead of rewriting it every time) - rust-lang#100630 (rustdoc JSON: Fix ICE with `pub extern crate self as <self_crate_name>`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Closes #100531
r? @GuillaumeGomez
@rustbot labels +A-rustdoc-json +T-rustdoc