Commit 40ba878 1 parent aa1550d commit 40ba878 Copy full SHA for 40ba878
File tree 1 file changed +0
-16
lines changed
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -543,22 +543,6 @@ TypeCheckType::resolve_segments (
543
543
}
544
544
545
545
context->insert_receiver (expr_mappings.get_hirid (), prev_segment);
546
- if (tyseg->needs_generic_substitutions ())
547
- {
548
- // location_t locus = segments.back ()->get_locus ();
549
- if (!prev_segment->needs_generic_substitutions ())
550
- {
551
- auto used_args_in_prev_segment
552
- = GetUsedSubstArgs::From (prev_segment);
553
- if (!used_args_in_prev_segment.is_error ())
554
- tyseg
555
- = SubstMapperInternal::Resolve (tyseg, used_args_in_prev_segment);
556
- }
557
-
558
- if (tyseg->get_kind () == TyTy::TypeKind::ERROR)
559
- return new TyTy::ErrorType (expr_id);
560
- }
561
-
562
546
rust_assert (resolved_node_id != UNKNOWN_NODEID);
563
547
564
548
// lookup if the name resolver was able to canonically resolve this or not
You can’t perform that action at this time.
0 commit comments