about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-11-20 22:08:19 +0000
committerbors <bors@rust-lang.org>2015-11-20 22:08:19 +0000
commit731c0ce4c9fce4b689841be477841595be686ce9 (patch)
tree27144f93eb0a6605785f14baea6c9228839e7ac4 /src/rustllvm/RustWrapper.cpp
parent20cbba71d496b8b3760d76d694e12dd54c3f3eea (diff)
parent24311d076267b40fed222dd661eb179f4613be74 (diff)
downloadrust-731c0ce4c9fce4b689841be477841595be686ce9.tar.gz
rust-731c0ce4c9fce4b689841be477841595be686ce9.zip
Auto merge of #29961 - alexcrichton:order-dependent, r=brson
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