]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #14253 : alexcrichton/rust/issue-14221, r=pcwalton
authorbors <bors@rust-lang.org>
Sat, 17 May 2014 12:06:27 +0000 (05:06 -0700)
committerbors <bors@rust-lang.org>
Sat, 17 May 2014 12:06:27 +0000 (05:06 -0700)
This plugs a leak where resolve was treating enums defined in parent modules as
in-scope for all children modules when resolving a pattern identifier. This
eliminates the code path in resolve entirely.

If this breaks any existing code, then it indicates that the variants need to be
explicitly imported into the module.

Closes #14221

1  2 
src/compiletest/runtest.rs
src/librustc/middle/resolve.rs

Simple merge
Simple merge