File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -613,29 +613,6 @@ class ASTLoweringItem : public ASTLoweringBase
613
613
if (trait.has_generics ())
614
614
{
615
615
generic_params = lower_generic_params (trait.get_generic_params ());
616
-
617
- for (auto &generic_param : generic_params)
618
- {
619
- switch (generic_param->get_kind ())
620
- {
621
- case HIR::GenericParam::GenericKind::TYPE: {
622
- const HIR::TypeParam &t
623
- = static_cast <const HIR::TypeParam &> (*generic_param);
624
-
625
- if (t.has_type ())
626
- {
627
- // see https://github.com/rust-lang/rust/issues/36887
628
- rust_error_at (
629
- t.get_locus (),
630
- " defaults for type parameters are not allowed here" );
631
- }
632
- }
633
- break ;
634
-
635
- default :
636
- break ;
637
- }
638
- }
639
616
}
640
617
641
618
std::vector<std::unique_ptr<HIR::TypeParamBound>> type_param_bounds;
You can’t perform that action at this time.
0 commit comments