about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-01-23 06:53:09 +0000
committerbors <bors@rust-lang.org>2015-01-23 06:53:09 +0000
commite9285f9e816af4332eaf59a2a349c830d8f68602 (patch)
treeb67e2e05ae097fbdf267d36098a2b63b41524269 /src/libstd/sys/unix/stack_overflow.rs
parentd8d5e4d2178097fbe92b26e57d0e18dc1eedbe5e (diff)
parentdb013f9f45a3083ccc9dd79299f110ec62e29704 (diff)
downloadrust-e9285f9e816af4332eaf59a2a349c830d8f68602.tar.gz
rust-e9285f9e816af4332eaf59a2a349c830d8f68602.zip
Auto merge of #21374 - dgrunwald:range-notation-fixes, r=nikomatsakis
This PR is intended as alternative to #20958. It fixes the same grammar inconsistencies, but does not increase the operator precedence of `..`, leaving it at the same level as the assignment operator.
For previous discussion, see #20811 and #20958.

Grammar changes:
* allow `for _ in 1..i {}` (fixes #20241)
* allow `for _ in 1.. {}` as infinite loop
* prevent use of range notation in contexts where only operators of high precedence are expected (fixes #20811)

Parser code cleanup:
* remove `RESTRICTION_NO_DOTS`
* make `AS_PREC` const and follow naming convention
* make `min_prec` inclusive

r? nikomatsakis
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions