aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-item.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/backend/rust-compile-item.h')
-rw-r--r--gcc/rust/backend/rust-compile-item.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/gcc/rust/backend/rust-compile-item.h b/gcc/rust/backend/rust-compile-item.h
index cfbe969..c6b135b 100644
--- a/gcc/rust/backend/rust-compile-item.h
+++ b/gcc/rust/backend/rust-compile-item.h
@@ -39,34 +39,6 @@ public:
item->accept_vis (compiler);
}
- void visit (HIR::TupleStruct &struct_decl)
- {
- TyTy::BaseType *resolved = nullptr;
- if (!ctx->get_tyctx ()->lookup_type (
- struct_decl.get_mappings ().get_hirid (), &resolved))
- {
- rust_fatal_error (struct_decl.get_locus (),
- "Failed to lookup type for struct decl");
- return;
- }
-
- TyTyResolveCompile::compile (ctx, resolved);
- }
-
- void visit (HIR::StructStruct &struct_decl)
- {
- TyTy::BaseType *resolved = nullptr;
- if (!ctx->get_tyctx ()->lookup_type (
- struct_decl.get_mappings ().get_hirid (), &resolved))
- {
- rust_fatal_error (struct_decl.get_locus (),
- "Failed to lookup type for struct decl");
- return;
- }
-
- TyTyResolveCompile::compile (ctx, resolved);
- }
-
void visit (HIR::StaticItem &var)
{
TyTy::BaseType *resolved_type = nullptr;