]> git.lizzy.rs Git - rust.git/commit
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)
commit3da5a5cd18dc2a2177160772725946c3b4512f7c
treef54ec0e483ffe0f87253021187d4c86141aed9fa
parent20b502b2418c548a1ea47569784d07362780c8f4
parent7cbec5566ce23701691a065866799f7057262acc
auto merge of #14253 : alexcrichton/rust/issue-14221, r=pcwalton

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
src/compiletest/runtest.rs
src/librustc/middle/resolve.rs