Skip to content
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

Recursive elseif #273

Merged
6 commits merged into from
Mar 15, 2011
Merged

Recursive elseif #273

6 commits merged into from
Mar 15, 2011

Conversation

brson
Copy link
Contributor

@brson brson commented Mar 13, 2011

This redefines expr_if as a condition, if block, and optional else expression, which may be either expr_if or expr_block. You preferred this option less than the existing definition last time around, but marijn expressed a preference for this one, and it makes most code paths involved simpler, so I'm proposing it again.

Please note what I did in 2a66294 though. I removed some generated code around expr_block to remove a FIXME. The tests still pass, but I can't say that I really understood what I changed.

brson added 6 commits January 30, 2011 14:15
Conflicts:

	src/Makefile
	src/comp/front/ast.rs
	src/comp/front/parser.rs
	src/comp/middle/fold.rs
	src/comp/middle/trans.rs
Doesn't seem to break anything and allows trans_if to be streamlined
Conflicts:

	src/comp/middle/typeck.rs
oli-obk added a commit to oli-obk/rust that referenced this pull request Sep 19, 2017
Test that &* of a dangling (and even unaligned) ptr is okay
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this pull request Dec 12, 2017
kazcw pushed a commit to kazcw/rust that referenced this pull request Oct 23, 2018
dlrobertson pushed a commit to dlrobertson/rust that referenced this pull request Nov 29, 2018
This pull request was closed.
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