File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -2878,40 +2878,6 @@ class Verifier : public ASTWalker {
2878
2878
continue ;
2879
2879
}
2880
2880
}
2881
-
2882
- // Make sure we have the right signature conformances.
2883
- if (!normal->isInvalid ()){
2884
- auto conformances = normal->getSignatureConformances ();
2885
- unsigned idx = 0 ;
2886
- auto reqs = proto->getRequirementSignature ().getRequirements ();
2887
- for (const auto &req : reqs) {
2888
- if (req.getKind () != RequirementKind::Conformance)
2889
- continue ;
2890
-
2891
- if (idx >= conformances.size ()) {
2892
- Out << " error: not enough conformances for requirement signature\n " ;
2893
- normal->dump (Out);
2894
- abort ();
2895
- }
2896
-
2897
- auto reqProto = req.getProtocolDecl ();
2898
- if (reqProto != conformances[idx].getRequirement ()) {
2899
- Out << " error: wrong protocol in signature conformances: have "
2900
- << conformances[idx].getRequirement ()->getName ().str ()
2901
- << " , expected " << reqProto->getName ().str ()<< " \n " ;
2902
- normal->dump (Out);
2903
- abort ();
2904
- }
2905
-
2906
- ++idx;
2907
- }
2908
-
2909
- if (idx != conformances.size ()) {
2910
- Out << " error: too many conformances for requirement signature\n " ;
2911
- normal->dump (Out);
2912
- abort ();
2913
- }
2914
- }
2915
2881
}
2916
2882
2917
2883
void verifyChecked (GenericTypeDecl *generic) {
You can’t perform that action at this time.
0 commit comments