about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-09-06 13:52:07 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-09-08 11:04:14 -0700
commit22179f49e573edf3616895419f1acd8b93be9cb9 (patch)
treef1528efbde03fb923da106b56318154915e47435 /src/rustllvm/RustWrapper.cpp
parent6f34760e4173dda94162502153fe4c5a2a96fc9d (diff)
downloadrust-22179f49e573edf3616895419f1acd8b93be9cb9.tar.gz
rust-22179f49e573edf3616895419f1acd8b93be9cb9.zip
librustc: Feature gate subslice matching in non-tail positions.
This breaks code that uses the `..xs` form anywhere but at the end of a
slice. For example:

    match foo {
        [ 1, ..xs, 2 ]
        [ ..xs, 1, 2 ]
    }

Add the `#![feature(advanced_slice_patterns)]` gate to reenable the
syntax.

RFC #54.

Closes #16951.

[breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions