]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #49273 - michaelwoerister:fix-extern-proc-macro-defkey, r=eddyb
authorkennytm <kennytm@gmail.com>
Sat, 24 Mar 2018 17:26:41 +0000 (01:26 +0800)
committerGitHub <noreply@github.com>
Sat, 24 Mar 2018 17:26:41 +0000 (01:26 +0800)
commit2b2f91638f140aa5d5a889aff185aee964f0fe40
tree01e1a004f94cbaf4d1d17ba39a2b713cf567a77d
parent3bc81f7f4dbf5cf0d1b87292848efe78c5fac516
parenta1a3bf2b31af680ffbbed4270efc0a2cda80ca87
Rollup merge of #49273 - michaelwoerister:fix-extern-proc-macro-defkey, r=eddyb

Fix DefKey lookup for proc-macro crates.

Add a special case for proc-macro crates for `def_key()` in the metadata decoder (like we already have for many other methods in there). In the long run, it would be preferable to get rid of the need for special casing proc-macro crates (see #49271).

Fixes https://github.com/rust-lang/rust/issues/48739 (though I wasn't able to come up with a regression test, unfortunately)

r? @eddyb
src/librustc_metadata/decoder.rs