]> git.lizzy.rs Git - rust.git/commit
Check for shadowing between lifetimes and loop labels in function bodies.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 3 Apr 2015 00:51:38 +0000 (02:51 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 21 Apr 2015 16:09:41 +0000 (18:09 +0200)
commitdd240707999216a64e7914c2290cb59c54d9c60c
treee34e58d1cec8e748fb957e1084c51b61ff26e1e1
parent77acda1c8ee75f9eb923ddd811ee591951b2d43f
Check for shadowing between lifetimes and loop labels in function bodies.

Note: this Warns rather than error on shadowing problems involving labels.
We took this more conservative option mostly due to issues with
hygiene being broken for labels and/or lifetimes.

Add FIXME regarding non-hygienic comparison.
src/librustc/middle/resolve_lifetime.rs