Minimize amount of fake DefIds used in rustdoc

This commit is contained in:
Justus K 2021-05-08 10:04:03 +02:00
parent c6dd87a6b4
commit 67d8d18b23
No known key found for this signature in database
GPG key ID: 8C62FE98A62FC462
12 changed files with 55 additions and 90 deletions

View file

@ -465,8 +465,6 @@ pub(super) fn write_shared(
// Update the list of all implementors for traits
let dst = cx.dst.join("implementors");
for (&did, imps) in &cx.cache.implementors {
let did = did.expect_real();
// Private modules can leak through to this phase of rustdoc, which
// could contain implementations for otherwise private types. In some
// rare cases we could find an implementation for an item which wasn't