about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-07-19 22:37:08 +0530
committerGitHub <noreply@github.com>2023-07-19 22:37:08 +0530
commitc7c89140b00327eb22b00f8962bd75c10d58e219 (patch)
tree87a374bb8523a92b441a54e237f901003f522b79 /compiler/rustc_errors/src
parent444ac1a6dfd780e7a56224a367cd616b48b28f09 (diff)
parentafec6d242bf308139503e4051fc4251f785b377a (diff)
downloadrust-c7c89140b00327eb22b00f8962bd75c10d58e219.tar.gz
rust-c7c89140b00327eb22b00f8962bd75c10d58e219.zip
Rollup merge of #113785 - GuillaumeGomez:tests/rustdoc/issue-105735-fix, r=notriddle,aDotInTheVoid
Fix invalid display of inlined re-export when both local and foreign items are inlined

Fixes #105735.

The bug is actually quite interesting: at the `clean` pass, local inlined items have their `use` item removed, however foreign items don't have their `use` item removed because it's in the `clean` pass that we handle them. So when a `use` inlines both a local and a foreign item, it will work as expected for the foreign one, but not for the local as its `use` should not be around anymore.

To prevent this, I created a new `inlined_foreigns` field into the `Module` struct to allow to remove the `use` item early on for foreign items as well. Then we iterate it in the `clean` pass directly.

r? ``@notriddle``
Diffstat (limited to 'compiler/rustc_errors/src')
0 files changed, 0 insertions, 0 deletions