diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-10-20 21:05:39 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-11-20 10:58:38 -0800 |
| commit | 24311d076267b40fed222dd661eb179f4613be74 (patch) | |
| tree | 58800a9d458b61d02989f8ade21c297a7e96ca1e /src/rustllvm/RustWrapper.cpp | |
| parent | 19020210321b08f136349968a8d868f789445090 (diff) | |
| download | rust-24311d076267b40fed222dd661eb179f4613be74.tar.gz rust-24311d076267b40fed222dd661eb179f4613be74.zip | |
rustc: Fix `extern crate` being order dependent
This commit fixes a bug where a crate could fail to compile depending on the order of `extern crate` directives at the top of the crate. Specifically, if the same crate is found at two locations, then if it's loaded first via `--extern` it will not emit a duplicate warning, but if it's first loaded transitively via a dep and *then* via `--extern` an error will be emitted. The loader was tweaked to catch this scenario and coalesce the loading of these two crates to prevent errors from being emitted.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
