On 30/05/2013 9:09 PM, Robert O'Callahan wrote:
FWIW shadowed local variable declarations have been a source of some
frustrating bugs in Gecko. In a big function you see a use of 'x', and a
declaration of 'x', and assume they're related, but they're not.

I'll take that as a vote for a lint flag. Maybe set to warning level by default?

(Our lints can be set from anything between allow and forbid, the latter meaning not just "error" but also "nobody else can override this in this crate, I don't care what they think")

-Graydon

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to