[rust-dev] exhaustiveness checking can fail due to confusion of identifier and variant

Patrick Walton pwalton at mozilla.com
Tue Jul 24 19:56:29 PDT 2012


On 07/24/2012 07:29 PM, Niko Matsakis wrote:
> Yeah, thinking more on it I'm not sure I want it anyhow.  It's kind of
> magical.
>
> Probably just fixing the bug about warning about unused bindings is the
> best thing.

Another idea: If we camel-cased variants by convention, then we could 
issue a warning if a camel-cased identifier resolves to a variable binding.

Patrick


More information about the Rust-dev mailing list