]> git.lizzy.rs Git - rust.git/commit
auto merge of #8045 : michaelwoerister/rust/destructuring, r=jdm
authorbors <bors@rust-lang.org>
Sat, 27 Jul 2013 10:37:35 +0000 (03:37 -0700)
committerbors <bors@rust-lang.org>
Sat, 27 Jul 2013 10:37:35 +0000 (03:37 -0700)
commite7211948a546596bbe058b4fd3748a24adecaf02
treecaff8ee5dac58d2d291b3a44989c788cffccf042
parent15310ba7c2a930a26bf6104f336cf7220eec7dc7
parentd54615528c9d90523865a5bc518b21bb20909ce2
auto merge of #8045 : michaelwoerister/rust/destructuring, r=jdm

As the title says, valid debug info is now generated for any kind of pattern-based bindings like an example from the automated tests:
```rust
let ((u, v), ((w, (x, Struct { a: y, b: z})), Struct { a: ae, b: oe }), ue) =
    ((25, 26), ((27, (28, Struct { a: 29, b: 30})), Struct { a: 31, b: 32 }), 33);
```
(Not that you would necessarily want to do a thing like that :P )

Fixes #2533
src/librustc/middle/trans/base.rs