]> git.lizzy.rs Git - rust.git/commit
rustc: Use --extern to always override
authorAlex Crichton <alex@alexcrichton.com>
Fri, 30 Jan 2015 17:48:23 +0000 (09:48 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 30 Jan 2015 17:48:23 +0000 (09:48 -0800)
commitcf535a3b8fa63fb1e7539fa06e087c1886d48c0a
treee2456055d38dc4299d2fa4b19844a1f33b21cff3
parent1a51eb9cca3ae5f815825096de4dfbdc9267f735
rustc: Use --extern to always override

Previously if --extern was specified it would not override crates in the
standard distribution, leading to issues like #21771. This commit alters the
behavior such that if --extern is passed then it will always override any other
choice of crates and no previous match will be used (unless it is the same path
as --extern).

Closes #21771
src/librustc/metadata/creader.rs
src/test/run-make/extern-overrides-distribution/Makefile [new file with mode: 0644]
src/test/run-make/extern-overrides-distribution/libc.rs [new file with mode: 0644]
src/test/run-make/extern-overrides-distribution/main.rs [new file with mode: 0644]