diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2024-08-09 20:43:30 -0700 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2024-10-04 23:28:22 +0000 |
| commit | d6f247f3d52f529e7145eb355ac9660a49d0d8c9 (patch) | |
| tree | 40a82d7ef14a8c598b863abac21d78796fa98558 /src/librustdoc/visit_ast.rs | |
| parent | 4ec7839afa30aae41ee01326b0273ca1ba8e027b (diff) | |
| download | rust-d6f247f3d52f529e7145eb355ac9660a49d0d8c9.tar.gz rust-d6f247f3d52f529e7145eb355ac9660a49d0d8c9.zip | |
rm `ItemKind::OpaqueTy`
This introduce an additional collection of opaques on HIR, as they can no longer be listed using the free item list.
Diffstat (limited to 'src/librustdoc/visit_ast.rs')
| -rw-r--r-- | src/librustdoc/visit_ast.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/librustdoc/visit_ast.rs b/src/librustdoc/visit_ast.rs index 6defe91d383..f789aca7378 100644 --- a/src/librustdoc/visit_ast.rs +++ b/src/librustdoc/visit_ast.rs @@ -505,21 +505,11 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> { | hir::ItemKind::Struct(..) | hir::ItemKind::Union(..) | hir::ItemKind::TyAlias(..) - | hir::ItemKind::OpaqueTy(hir::OpaqueTy { - origin: hir::OpaqueTyOrigin::TyAlias { .. }, - .. - }) | hir::ItemKind::Static(..) | hir::ItemKind::Trait(..) | hir::ItemKind::TraitAlias(..) => { self.add_to_current_mod(item, renamed, import_id); } - hir::ItemKind::OpaqueTy(hir::OpaqueTy { - origin: hir::OpaqueTyOrigin::AsyncFn { .. } | hir::OpaqueTyOrigin::FnReturn { .. }, - .. - }) => { - // return-position impl traits are never nameable, and should never be documented. - } hir::ItemKind::Const(..) => { // Underscore constants do not correspond to a nameable item and // so are never useful in documentation. |
