Skip to content

Commit

Permalink
get past type nonsense, die in marklive
Browse files Browse the repository at this point in the history
  • Loading branch information
liamnaddell committed Jan 11, 2025
1 parent fc6f5b6 commit aab004e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gcc/rust/typecheck/rust-hir-type-check-path.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,15 @@ TypeCheckExpr::visit (HIR::PathInExpression &expr)

//now find its type
TyTy::BaseType *bl = TypeCheckItem::Resolve (hi);
infered = bl;
assert(bl != nullptr);
//lmao, find a better way to do this...
TyTy::VariantDef *vde =
TypeCheckEnumItem::Resolve(ei,INT64_MAX - 1);

context->insert_variant_definition (expr.get_mappings ().get_hirid (),
vde->get_id());
bl = SubstMapper::InferSubst (bl, expr.get_locus ());
infered = bl;
assert(bl != nullptr);
return;
}
TyTy::BaseType *tyseg = resolve_root_path (expr, &offset, &resolved_node_id);
Expand Down

0 comments on commit aab004e

Please sign in to comment.