about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-16 15:44:14 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-16 16:16:57 -0700
commit7cbec5566ce23701691a065866799f7057262acc (patch)
treecda212ec4ff370b324d40ea603fa64782dd27135 /src/rustllvm/RustWrapper.cpp
parent25c54226c3e7dd6f59cf2e92238a4d79d8b0128d (diff)
downloadrust-7cbec5566ce23701691a065866799f7057262acc.tar.gz
rust-7cbec5566ce23701691a065866799f7057262acc.zip
rustc: Stop leaking enum variants into children
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

[breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions