about summary refs log tree commit diff
path: root/src/rt/rust_crate_cache.cpp
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-08-22 14:38:48 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-08-22 17:49:31 +0200
commit7d08678b740d779d9f0e1e6d15d7cf6ad4e1b57a (patch)
tree71a73aa6e74449cab2048957f79a5ca05138e22b /src/rt/rust_crate_cache.cpp
parenta2466233b4217cc8da4d2ebcd5f7c0b11db5b861 (diff)
downloadrust-7d08678b740d779d9f0e1e6d15d7cf6ad4e1b57a.tar.gz
rust-7d08678b740d779d9f0e1e6d15d7cf6ad4e1b57a.zip
Implement pattern guards
The syntax is

    alt x {
        mypat where mycond { ... }
    }

The condition may refer to any of the variables bound by the pattern.
When a guard fails, pattern-matching continues with the next pattern.

Closes #857
Diffstat (limited to 'src/rt/rust_crate_cache.cpp')
0 files changed, 0 insertions, 0 deletions