Uh oh!
There was an error while loading. Please reload this page.
syntax: Rewrite parsing of patterns - #23930
Conversation
rust-highfive
commented
Apr 1, 2015
r? @nrc (rust_highfive has picked a reviewer for you, use r? to override) |
alexcrichton
commented
Apr 1, 2015
Nice! |
There was a problem hiding this comment.
Could you explain the reasoning behind why it is safe to remove this check please?
There was a problem hiding this comment.
Flag RESTRICTION_NO_BAR_OP is checked here but it isn't set anywhere, so I removed the check and the flag itself. RESTRICTION_NO_BAR_OP was used before in parse_pat, see my line comments there.
nrc
commented
Apr 2, 2015
lgtm, I just want to be clear about removing that one check |
There was a problem hiding this comment.
Here parse_expr_res(RESTRICTION_NO_BAR_OP) was mistakenly used to parse plain identifier.
nrc
commented
Apr 2, 2015
Ok, sounds good, thanks for the explanation. @bors: r+ d9a0ca01f3938efbb34587e3f52214d8c0bc1624 |
bors
commented
Apr 2, 2015
⌛ Testing commit d9a0ca0 with merge eb9ca18... |
bors
commented
Apr 2, 2015
💔 Test failed - auto-linux-64-x-android-t |
petrochenkov
commented
Apr 3, 2015
Rebased and fixed. |
nrc
commented
Apr 3, 2015
bors
commented
Apr 3, 2015
⌛ Testing commit 76567a6 with merge 0640106... |
bors
commented
Apr 3, 2015
⛄ The build was interrupted to prioritize another pull request. |
bors
commented
Apr 3, 2015
⌛ Testing commit 76567a6 with merge 80def6c... |
Fixes#22757Fixes#22972Fixes#23044Fixes#23151Fixes#23597Fixes#23656Fixes#23929 It also fixes some other corner cases in range patterns, like incorrect spans or not accepting global paths after `...`. It passes `make check` but needs some additional tests (then it will fix#22546 as well), I'll write them today or tomorrow.
Fixesrust-lang#22757Fixesrust-lang#22972Fixesrust-lang#23044Fixesrust-lang#23151Fixesrust-lang#23597Fixesrust-lang#23656Fixesrust-lang#23929 It also fixes some other corner cases in range patterns, like incorrect spans or not accepting global paths after `...`. It passes `make check` but needs some additional tests (then it will fixrust-lang#22546 as well), I'll write them today or tomorrow.
bors
commented
Apr 3, 2015
ghost
commented
Apr 3, 2015
@petrochenkov Did you mean to say that you'd add the test cases in a separate PR? As it is, none of the fixed issues have any related tests so perhaps we should reopen them? |
petrochenkov
commented
Apr 3, 2015
@jakub- |
This was supposed to be a part of rust-lang#23930
bombless
commented
Apr 4, 2015
bombless
commented
Apr 4, 2015
cc @pnkfelix |
brson
commented
Apr 7, 2015
@bombless I reopened that issue for you. |
brson
commented
Apr 7, 2015
Awesome list of fixes. |
pnkfelix
commented
Apr 7, 2015
@bombless thanks for the pro-active note. However, during triage (I think), the team decided as noted in e.g. this comment that we would keep the syntax, and that we just needed to exercise the edge cases more thoroughly. |
pnkfelix
commented
Apr 7, 2015
But, skimming this PR, it seems like it did not actually add any tests relevant to #22546, so I guess that issue should remain open. |
Fixes#22757
Fixes#22972
Fixes#23044
Fixes#23151
Fixes#23597
Fixes#23656
Fixes#23929
It also fixes some other corner cases in range patterns, like incorrect spans or not accepting global paths after
....It passes
make checkbut needs some additional tests (then it will fix#22546 as well), I'll write them today or tomorrow.