about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-09-15 09:39:24 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-09-15 09:49:00 +0200
commit0b34e0e60bb605ac00a3c2a00a687c92675092c7 (patch)
tree89c28c3861aa8295df0d6d223f13cf15ae167b44 /src/rt/rust_task.cpp
parent7298b8f4bac7687824ef41f6e3f9f114aa070417 (diff)
downloadrust-0b34e0e60bb605ac00a3c2a00a687c92675092c7.tar.gz
rust-0b34e0e60bb605ac00a3c2a00a687c92675092c7.zip
Introduce new semicolon rules
- Loop bodies and resource constructors aren't allowed to have
  trailing expressions anymore.

- An expression that ends* in a block without trailing expression can
  can not be called, indexed, or subscripted.

- Only expression-statements that end* in a block without trailing
  expression can omit their semicolon.

*) 'Ending in a trailing expression' is defined as being a block or
   construct-ending-in-a-block (if, alt) that either ends in an
   expression itself, or ends in another block-like expression that
   has a trailing expression (by these same rules).
Diffstat (limited to 'src/rt/rust_task.cpp')
0 files changed, 0 insertions, 0 deletions