]> git.lizzy.rs Git - rust.git/commit
auto merge of #12338 : edwardw/rust/hygienic-break-continue, r=cmr
authorbors <bors@rust-lang.org>
Sun, 23 Feb 2014 23:37:05 +0000 (15:37 -0800)
committerbors <bors@rust-lang.org>
Sun, 23 Feb 2014 23:37:05 +0000 (15:37 -0800)
commit329fcd48e508ebe41e6d2425c0f54b2210af401d
treeb5297ad96ec683968e1b5dee486710be4a7c8ab3
parentcbed3321f5bbe4375819dd82193bd4299fabafb9
parent386db05df8aa8349857ad6f5486db0bdcc79f3cd
auto merge of #12338 : edwardw/rust/hygienic-break-continue, r=cmr

Makes labelled loops hygiene by performing renaming of the labels defined in e.g. `'x: loop { ... }` and then used in break and continue statements within loop body so that they act hygienically when used with macros.

Closes #12262.
src/librustc/middle/resolve.rs
src/libsyntax/ast.rs
src/libsyntax/parse/token.rs