]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #48353 - michaelwoerister:monoitem-static-defid, r=eddyb
authorManish Goregaokar <manishsmail@gmail.com>
Sat, 24 Feb 2018 16:55:51 +0000 (08:55 -0800)
committerManish Goregaokar <manishsmail@gmail.com>
Sat, 24 Feb 2018 20:48:01 +0000 (12:48 -0800)
commit2483d842fb0113a807bd304908e7a0d002e2a1fe
tree976c5e6da6e05315931a2ae968380dd8251b7d86
parenta1a14096470fd96cc0ca25167623c940a1b96ce9
parent89b3ef3e8eae1a9cf119888341509e10fd7e1b9a
Rollup merge of #48353 - michaelwoerister:monoitem-static-defid, r=eddyb

Allow for instantiating statics from upstream crates

This PR makes the infrastructure around translating statics a bit more flexible so that it can also instantiate statics from upstream crates if the need arises. This is preparatory work for a MIR-only RLIBs prototype, where the instantiation of a `static` may be deferred until a leaf crate.

r? @eddyb (feel free to assign to someone else if you're busy)
src/librustc/ty/maps/plumbing.rs
src/librustc_driver/driver.rs