rust/src/test
Alex Crichton 48b6aef660 rustc: Don't fall back to -L if using --extern
The compiler would previously fall back to using `-L` and normal lookup paths if
a `--extern` path was specified but it did not match (wrong architecture, for
example). This commit removes this behavior and forces the hand of the crate
loader to *always* use the `--extern` path if specified, no matter whether it is
correct or not.

This fixes a bug today where the compiler's own libraries are favored in cross
compilation by accident. For example when a crate using the crates.io version of
`log` was cross compiled, Cargo would compile `log` for the target architecture.
When loading the macros, however, the compiler currently favors using the *host*
architecture (for plugins), and because the `--extern log=...` pointed at an
rlib for the target architecture, that lookup failed. The crate loader  then
fell back on `-L` paths to find the compiler-used `log` crate (the wrong one!)
and then a compile failure happened because the logging macros are slightly
different.
2015-02-06 13:53:39 -08:00
..
auxiliary cleanup: replace as[_mut]_slice() calls with deref coercions 2015-02-05 13:45:01 -05:00
bench Auto merge of #21947 - bluss:full-range-syntax, r=brson 2015-02-06 03:11:34 +00:00
codegen librustc: Forbid private types in public APIs. 2014-09-22 20:05:45 -07:00
compile-fail Auto merge of #21947 - bluss:full-range-syntax, r=brson 2015-02-06 03:11:34 +00:00
compile-fail-fulldeps tests: fix fallout of merging ast::ViewItem into ast::Item. 2015-01-21 20:05:16 +02:00
debuginfo cleanup: replace as[_mut]_slice() calls with deref coercions 2015-02-05 13:45:01 -05:00
pretty for x in xs.iter() -> for x in &xs 2015-02-02 13:40:18 -05:00
run-fail cleanup: replace as[_mut]_slice() calls with deref coercions 2015-02-05 13:45:01 -05:00
run-make rustc: Don't fall back to -L if using --extern 2015-02-06 13:53:39 -08:00
run-pass Auto merge of #21947 - bluss:full-range-syntax, r=brson 2015-02-06 03:11:34 +00:00
run-pass-fulldeps Remove all i suffixes 2015-01-30 04:38:54 +01:00
run-pass-valgrind Fallout of io => old_io 2015-01-26 16:01:16 -08:00