]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Auto merge of #79751 - aDotInTheVoid:json-true-idx, r=jyn514
authorbors <bors@rust-lang.org>
Mon, 7 Dec 2020 17:35:02 +0000 (17:35 +0000)
committerbors <bors@rust-lang.org>
Mon, 7 Dec 2020 17:35:02 +0000 (17:35 +0000)
commitafa995b2dd1e194845f2082707e6045d539230a5
treee84abd3b566f58a53ee9ad0c88304d4b90241da7
parentb5ff9c3d052c2c3d5f26076362f38643f6e48680
parentc254a15906d6ad64821659b50c4265c96b113159
Auto merge of #79751 - aDotInTheVoid:json-true-idx, r=jyn514

Rustdoc: Use correct def_id for doctree::Import

The default overwrites the crate root, which crashes rustdoc-json.

While investigating this, It turns out somehow, some items are being documented twice. I'm not sure how this is happening but for now, we just make sure they were the same if they have the same id.

[Zulip descussion](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/Panic.20in.20json-format/near/218899256)

[Bless script](https://gist.github.com/aDotInTheVoid/2dfce0d241338def3f033f941b7c183d) (Once this is more pollished I'll submit it)

r? `@jyn514`