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

Niko Matsakis niko at alum.mit.edu
Tue Jul 24 19:29:54 PDT 2012

Yeah, thinking more on it I'm not sure I want it anyhow.  It's kind of 

Probably just fixing the bug about warning about unused bindings is the 
best thing.


On 7/24/12 6:56 PM, Tim Chevalier wrote:
> On Tue, Jul 24, 2012 at 6:55 PM, Niko Matsakis <niko at alum.mit.edu> wrote:
>> Patrick, how hard would it be to allow something like:
>>      import A::foo::*
>> to get all the variants of an enum into scope?
> It used to be that import A::foo; *would* get all the variants of an
> enum into scope, if foo was an enum. We got rid of this because
> Patrick said it was too hard to implement in the context of resolve3.
> Cheers,
> Tim

More information about the Rust-dev mailing list