my rust fork
https://www.rust-lang.org
The code for taking pattern-bound variables was being interspersed with pattern code, so that if a nested pattern failed partway through, a variable would be taken but never dropped (because the drop code is inside the block representing the action for the pattern). For example, in the pattern foo(?i, bar(some[t](_)), _), if the scrutinee was foo(x, bar(none[t]), y), the variable i would be taken but never dropped. The patch fixes this bug. |
||
|---|---|---|
| doc | ||
| src | ||
| .gitignore | ||
| AUTHORS.txt | ||
| configure | ||
| LICENSE.txt | ||
| Makefile.in | ||
| README | ||
This is a compiler and suite of associated libraries and documentation for the Rust programming language. See LICENSE.txt for terms of copyright and redistribution. See http://github.com/graydon/rust for current development page.