File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5604,7 +5604,8 @@ Parser<ManagedTokenSource>::parse_inherent_impl_function_or_method (
5604
5604
// param
5605
5605
auto initial_param = parse_self_param ();
5606
5606
5607
- if (!initial_param.has_value () && initial_param.error () != NOT_SELF)
5607
+ if (!initial_param.has_value ()
5608
+ && initial_param.error () != ParseSelfError::NOT_SELF)
5608
5609
return nullptr ;
5609
5610
5610
5611
/* FIXME: ensure that self param doesn't accidently consume tokens for a
@@ -5803,7 +5804,8 @@ Parser<ManagedTokenSource>::parse_trait_impl_function_or_method (
5803
5804
// param
5804
5805
auto initial_param = parse_self_param ();
5805
5806
5806
- if (!initial_param.has_value () && initial_param.error () != NOT_SELF)
5807
+ if (!initial_param.has_value ()
5808
+ && initial_param.error () != ParseSelfError::NOT_SELF)
5807
5809
return nullptr ;
5808
5810
5809
5811
// FIXME: ensure that self param doesn't accidently consume tokens for a
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ enum class ParseLoopLabelError
39
39
NOT_LOOP_LABEL,
40
40
MISSING_COLON,
41
41
};
42
- enum ParseSelfError
42
+ enum class ParseSelfError
43
43
{
44
44
SELF_PTR,
45
45
PARSING,
You can’t perform that action at this time.
0 commit comments