diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2021-01-15 18:26:18 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-15 18:26:18 +0900 |
| commit | 7286be15fa3f18ea4bd5b6ce481426f7d78e4a57 (patch) | |
| tree | 21529ff86f6f364980511a8cb4cb7a0001ae29c0 | |
| parent | ce06df2e4a1d2c8a1d092d39b589bb5d101b6c10 (diff) | |
| parent | c54678ab2f464a0275b9cb57765913a3a6a0f691 (diff) | |
| download | rust-7286be15fa3f18ea4bd5b6ce481426f7d78e4a57.tar.gz rust-7286be15fa3f18ea4bd5b6ce481426f7d78e4a57.zip | |
Rollup merge of #81023 - CraftSpider:rustdoc-remove-variant, r=jyn514
Remove doctree::Variant This was easy, probably was missed when whatever used it was removed
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 13 | ||||
| -rw-r--r-- | src/librustdoc/doctree.rs | 6 |
2 files changed, 0 insertions, 19 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index c74a5659942..5ec79c586dc 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -1837,19 +1837,6 @@ impl Clean<VariantStruct> for rustc_hir::VariantData<'_> { } } -impl Clean<Item> for doctree::Variant<'_> { - fn clean(&self, cx: &DocContext<'_>) -> Item { - let what_rustc_thinks = Item::from_hir_id_and_parts( - self.id, - Some(self.name), - VariantItem(Variant { kind: self.def.clean(cx) }), - cx, - ); - // don't show `pub` for variants, which are always public - Item { visibility: Inherited, ..what_rustc_thinks } - } -} - impl Clean<Item> for ty::VariantDef { fn clean(&self, cx: &DocContext<'_>) -> Item { let kind = match self.ctor_kind { diff --git a/src/librustdoc/doctree.rs b/src/librustdoc/doctree.rs index bc9f1cf8806..4710c91f929 100644 --- a/src/librustdoc/doctree.rs +++ b/src/librustdoc/doctree.rs @@ -48,12 +48,6 @@ crate enum StructType { Unit, } -crate struct Variant<'hir> { - crate name: Symbol, - crate id: hir::HirId, - crate def: &'hir hir::VariantData<'hir>, -} - #[derive(Debug)] crate struct Import<'hir> { crate name: Symbol, |
