about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/rustdoc.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2023-02-19 14:47:55 +0100
committerGitHub <noreply@github.com>2023-02-19 14:47:55 +0100
commit49d7ed1dbef6744cd9a27fdae086c9b80fb4ed46 (patch)
treef9bc490bde2f48a91785d79ebc4910ed40029d89 /compiler/rustc_resolve/src/rustdoc.rs
parenteebdfb55fce148676c24555505aebf648123b2de (diff)
parent1ae875f0a30b7a71755fac43a8c6fe00dd205d33 (diff)
downloadrust-49d7ed1dbef6744cd9a27fdae086c9b80fb4ed46.tar.gz
rust-49d7ed1dbef6744cd9a27fdae086c9b80fb4ed46.zip
Rollup merge of #107766 - GuillaumeGomez:fix-json-reexports-of-different-items-with-same-name, r=aDotInTheVoid
Fix json reexports of different items with same name

Fixes  #107677.

I renamed `from_item_id*` functions into `id_from_item` instead because it makes more sense now. I also simplified the logic around it a bit so that the `ids` function will now directly pass `&clean::Item` to `id_from_item` and the ID will be consistently generated (it caused an issue when I updated the ID for imports).

So now, the big change of this PR: I changed how imports' ID is generated: it now includes the target item's ID at the end of the ID. It's to prevent two reexported items with the same name (but different types).

r? `@aDotInTheVoid`
Diffstat (limited to 'compiler/rustc_resolve/src/rustdoc.rs')
0 files changed, 0 insertions, 0 deletions