[rustdoc-json] ICE/incorect results when reexporting with #[doc(inline)] #83057
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
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.
Similar to #80664, another ICE due to non identical items.
Cargo.toml
src/lib.rs
foo/src/lib.rs
Run
cargo +nightly rustdoc -- -w json
, and it panics hereThe difference is one has
attrs: []
and the other hasattrs: ["#[doc(inline)]"]
.This occors as
foo::Foo
is used twice, once with and once without#[doc(inline)]
Non ICE versions
Import from local
When
foo
is a internal module and not a crate, this worksJSON output (redacted for clarity)
Here we drop the
#[doc(inline)]
, which is probably wrong.This is actualy correct,
Import only once
JSON output
This is also wrong, as id
0:1
is not referenced anywhere, and1:1
is given#[doc(inline)]
, even though it should have it.cc @CraftSpider @P1n3appl3
@rustbot modify labels: +C-bug +A-rustdoc-json +T-rustdoc +A-attributes
The text was updated successfully, but these errors were encountered: