]> git.lizzy.rs Git - rust.git/commit
Remove the branch merging optimisations for slice patterns
authorJakub Wieczorek <jakub@jakub.cc>
Sat, 30 Aug 2014 14:22:19 +0000 (16:22 +0200)
committerJakub Wieczorek <jakub@jakub.cc>
Sat, 30 Aug 2014 17:50:46 +0000 (19:50 +0200)
commit6f35ede5a475c286066d8d88cb9a519be2133d0d
tree9733c7f8994ab75a7a2a8b9c7f200d89cd81d381
parentd398eb76ae5fdb7c08bbb7c0e3d85dc22d42c5ce
Remove the branch merging optimisations for slice patterns

They were only correct in the simplest case. Some of the optimisations
are certainly possible but should be introduced carefully and only
when the whole pattern codegen infrastructure is in a better shape.

Fixes #16648.
src/librustc/middle/check_match.rs
src/librustc/middle/pat_util.rs
src/librustc/middle/trans/_match.rs
src/librustc/middle/trans/adt.rs
src/librustc/middle/trans/base.rs
src/libsyntax/attr.rs
src/test/run-pass/issue-16648.rs [new file with mode: 0644]