diff options
| author | Yuki Okushi <huyuumi.dev+love@gmail.com> | 2023-01-14 12:04:35 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-14 12:04:35 +0900 |
| commit | 96d4d491d025c48c324a11e41b427f27c4684ea4 (patch) | |
| tree | 910524c7d94c9416f12137a2f871116a2a548dcf | |
| parent | 9b502a4765b80f4ffaaf23ede63d8a823ad93272 (diff) | |
| parent | 0482a48dab150882363f65a9689d45707a396fc4 (diff) | |
Rollup merge of #106766 - GuillaumeGomez:rm-stripper-dead-code, r=notriddle
Remove dead code in rustdoc stripper No changes when this code is removed. cc `@aDotInTheVoid` r? `@notriddle`
| -rw-r--r-- | src/librustdoc/passes/stripper.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/librustdoc/passes/stripper.rs b/src/librustdoc/passes/stripper.rs index f5501b3d523..048ed264623 100644 --- a/src/librustdoc/passes/stripper.rs +++ b/src/librustdoc/passes/stripper.rs @@ -97,17 +97,7 @@ impl<'a, 'tcx> DocFolder for Stripper<'a, 'tcx> { } // handled in the `strip-priv-imports` pass - clean::ExternCrateItem { .. } => {} - clean::ImportItem(ref imp) => { - // Because json doesn't inline imports from private modules, we need to mark - // the imported item as retained so it's impls won't be stripped. - // - // FIXME: Is it necessary to check for json output here: See - // https://github.com/rust-lang/rust/pull/100325#discussion_r941495215 - if let Some(did) = imp.source.did && self.is_json_output { - self.retained.insert(did.into()); - } - } + clean::ExternCrateItem { .. } | clean::ImportItem(_) => {} clean::ImplItem(..) => {} |
