rustdoc JSON: Fix ICE with pub extern crate self as <self_crate_name>#100630
rustdoc JSON: Fix ICE with pub extern crate self as <self_crate_name>#100630bors merged 1 commit intorust-lang:masterfrom
pub extern crate self as <self_crate_name>#100630Conversation
| | types::ItemEnum::PrimitiveType(_) => true, | ||
| types::ItemEnum::Module(_) | ||
| | types::ItemEnum::ExternCrate { .. } | ||
| types::ItemEnum::ExternCrate { .. } |
There was a problem hiding this comment.
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