Rustdoc re-exports only include one item per name across all namespaces #107677
Labels
A-rustdoc-json
Area: Rustdoc JSON backend
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: generated rustdoc JSON should include
"import"
items that point to both the function and the type namedFoo
, for each of the re-exportedFoo
andBar
names.Instead, this happened: the rustdoc JSON only one
"import"
item forFoo
and one forBar
, both pointing to the function. No re-export items pointing to the struct were present, as if the struct was not re-exported (even though theproof()
function shows it is).These are the only
"kind": "import"
items present in the rustdoc JSON.This is the item those point to:
This issue originally came up as obi1kenobi/cargo-semver-checks#343, since
clap v3.2.0
re-exports a trait and a derive macro that have the same name.trustfall-rustdoc-adapter
PR obi1kenobi/trustfall-rustdoc-adapter#72 includes this failing test case.Meta
rustc --version --verbose
:Also present in 1.67 and 1.68.0-beta.1 (efd2745 2023-01-25).
The text was updated successfully, but these errors were encountered: