Skip to content

_match.rs: improve enter_opt #13169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

_match.rs: improve enter_opt #13169

wants to merge 1 commit into from

Conversation

edwardw
Copy link
Contributor

@edwardw edwardw commented Mar 27, 2014

The enter_opt needs to know whether an arm has guard function or not.
Passes in additional argument so that it can make more precise
judgement.

@edwardw
Copy link
Contributor Author

edwardw commented Mar 27, 2014

r? @nikomatsakis

This is to address Niko's concern about guarded = m.iter().any(...) in patch ##13034. The code should be more precise now and an explanatory comment therefor can be removed.

@edwardw
Copy link
Contributor Author

edwardw commented Apr 1, 2014

r? @nikomatsakis

@nikomatsakis
Copy link
Contributor

Oh yeah, sorry, I forgot about this patch. :( I don't quite understand what's going on here I'm afraid. Let me try to remember.

@edwardw edwardw closed this Apr 11, 2014
@edwardw edwardw deleted the match branch April 11, 2014 06:38
@nikomatsakis
Copy link
Contributor

@edwardw :( I'm sorry I've had such a long delay. Believe it or not, I've finally unblocked enough of my schedule to start looking at patches like this again. Do you feel that patch has bitrotted / did you lose confidence in it, or did you simply lose patience?

@edwardw edwardw reopened this Apr 15, 2014
@edwardw
Copy link
Contributor Author

edwardw commented Apr 15, 2014

Ah, I just thought this is a nice-to-have sort of thing and would be closed as inactive anyway. So here it is again. r?

@edwardw
Copy link
Contributor Author

edwardw commented Apr 22, 2014

r? @nikomatsakis

The `enter_opt` needs to know whether an arm has guard function or not.
Passes in additional argument so that it can make more precise
judgement.
@edwardw
Copy link
Contributor Author

edwardw commented May 2, 2014

Close and intend to resurrect the patch as part of the fix for #13867.

@edwardw edwardw closed this May 2, 2014
@nikomatsakis
Copy link
Contributor

On Fri, May 02, 2014 at 11:57:03AM -0700, Edward Wang wrote:

Close and intend to resurrect the patch as part of the fix for #13867.

OK. I've tried several times to grok this patch and never succeeded in
getting my head around it. :( (Mostly I think the fault lies in the
original code, which is quite opaque.) Anyway, i'd be happy to see a
more general restructuring.

@edwardw
Copy link
Contributor Author

edwardw commented May 5, 2014

This one (and #13034) has been reworked as part of #13940. You are welcome to review that one :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants