diff options
| author | bors <bors@rust-lang.org> | 2014-05-17 05:06:27 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-17 05:06:27 -0700 |
| commit | 3da5a5cd18dc2a2177160772725946c3b4512f7c (patch) | |
| tree | f54ec0e483ffe0f87253021187d4c86141aed9fa /src/compiletest | |
| parent | 20b502b2418c548a1ea47569784d07362780c8f4 (diff) | |
| parent | 7cbec5566ce23701691a065866799f7057262acc (diff) | |
| download | rust-3da5a5cd18dc2a2177160772725946c3b4512f7c.tar.gz rust-3da5a5cd18dc2a2177160772725946c3b4512f7c.zip | |
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
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/runtest.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index 55c3b6a34e5..cd00a949bf8 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -9,7 +9,8 @@ // except according to those terms. use common::Config; -use common::{CompileFail, Pretty, RunFail, RunPass, DebugInfoGdb, DebugInfoLldb}; +use common::{CompileFail, Pretty, RunFail, RunPass, DebugInfoGdb}; +use common::{Codegen, DebugInfoLldb}; use errors; use header::TestProps; use header; |
