]> git.lizzy.rs Git - rust.git/commit
rustc: Register crates under their real names
authorAlex Crichton <alex@alexcrichton.com>
Thu, 26 Jul 2018 01:02:03 +0000 (18:02 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 26 Jul 2018 01:04:19 +0000 (18:04 -0700)
commitf069a57bb1fb4f4aae4e42a6ee75ad277bcf9f7f
tree60aafd1401916634d3f5b5c8a9ce899d2c701050
parente842dea7a3d9babc7a19bd201711f4243840fab0
rustc: Register crates under their real names

Whenever we register a crate into the crate store, make sure to use the real
name mentioned in the metadata instead of the name mentioned in the `extern
crate` statement, as the statement can be wrong!

Closes #51796
src/librustc_metadata/creader.rs
src/test/run-make-fulldeps/extern-flag-rename-transitive/Makefile [new file with mode: 0644]
src/test/run-make-fulldeps/extern-flag-rename-transitive/bar.rs [new file with mode: 0644]
src/test/run-make-fulldeps/extern-flag-rename-transitive/baz.rs [new file with mode: 0644]
src/test/run-make-fulldeps/extern-flag-rename-transitive/foo.rs [new file with mode: 0644]