Uh oh!
There was an error while loading. Please reload this page.
Corrects issue #28777 by removing, once a binary operator is found, the - #30375
Conversation
… found, the RESTRICTION_STMT_EXPR restriction to allow subsequent expressions to contain braces. rust-lang#28777
alexcrichton
commented
Dec 14, 2015
r? @eddyb (random @rust-lang/compiler selection) |
There was a problem hiding this comment.
This can be written as restrictions - Restrictions::RESTRICTION_STMT_EXPR, AFAIK.
There was a problem hiding this comment.
You are correct. I missed the support for - as set difference in bitflags. Thank you.
Changed bit manipulation to use supported - (set difference) instead of explicit '& !'.
eddyb
commented
Dec 16, 2015
@bors r+ |
bors
commented
Dec 16, 2015
📌 Commit 41cc365 has been approved by |
RESTRICTION_STMT_EXPR restriction to allow subsequent expressions to contain braces. rust-lang#28777
mitaa
commented
Dec 17, 2015
I guess |
steveklabnik
commented
Dec 17, 2015
@bors: r- this failed the rollup |
aaronkeen
commented
Dec 17, 2015
Yes, parse-fail/assoc-oddities-3.rs fails, as noted in #28777, because it is successfully parsed after this modification which is then consistent with grammar/parser-lalr. Please excuse my ignorance relating to this process, but it is not clear to me if I should remove that test as part of my PR or wait for a confirmation that this is the desired behavior (is grammar/parser-lalr considered the model?). |
modification to parsing of binary operators. This is consistent with the behavior of grammar/parser-lalr.
aaronkeen
commented
Dec 17, 2015
Committed with test case removed. |
run-pass. Added run-pass/issue-28777 to demonstrate behavior of this parsing modification.
aaronkeen
commented
Dec 17, 2015
The original parse-fail/assoc-oddities-3.rs test has been updated and moved to run-pass. An additional test has been added to run-pass to demonstrate that this modification successfully addresses the issue (this should have been done in the first place). |
nagisa
commented
Dec 29, 2015
ping @eddyb r? EDIT: @aaronkeen ah, by the way, that test was written by me to ensure my changes to associative operator parsing do not change behaviour of the previous parser (since the changes have been quite extensive). It is (or was), as name suggests, an oddity. |
eddyb
commented
Dec 29, 2015
@bors r+ |
bors
commented
Dec 29, 2015
📌 Commit cedd794 has been approved by |
bors
commented
Dec 30, 2015
⌛ Testing commit cedd794 with merge 37ff5c8... |
bors
commented
Dec 30, 2015
💔 Test failed - auto-linux-64-opt |
aaronkeen
commented
Dec 30, 2015
It seems the following tests timed out. I have examined the tests in code snippets in primitive-types and do not see any code that should have been perturbed by this PR. These tests all passed on my local machine [x86_64-apple-darwin], so I am not sure what the issue is. Is it possible to retrieve information regarding the specific test that failed (the execution order differs from the file and from my machine)? |
nagisa
commented
Dec 30, 2015
@aaronkeen I believe the failure is spurious and a few retries should make it go away. |
aturon
commented
Dec 30, 2015
@bors: retry |
bors
commented
Dec 30, 2015
RESTRICTION_STMT_EXPR restriction to allow subsequent expressions to contain braces. #28777
RESTRICTION_STMT_EXPR restriction to allow subsequent expressions to
contain braces.
#28777