diff options
| author | kennytm <kennytm@gmail.com> | 2018-11-06 15:20:59 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-11-06 17:08:03 +0800 |
| commit | 462f63e1bbb59f1e4cea5272028e85852f9129aa (patch) | |
| tree | 9ce979be04320fa3fb93881fe4536a95ad91f3ef /src/libsyntax | |
| parent | 1525b0ee826e38d8427b2fabb0b92f6f407d5cb7 (diff) | |
| parent | ff5226cd2fa12fe82c7cef8112905af7cb48fe9d (diff) | |
| download | rust-462f63e1bbb59f1e4cea5272028e85852f9129aa.tar.gz rust-462f63e1bbb59f1e4cea5272028e85852f9129aa.zip | |
Rollup merge of #55597 - alexcrichton:thread-local-inner, r=KodrAus
std: Enable usage of `thread_local!` through imports The `thread_local!` macro delegated to an internal macro but it didn't do so in a macros-and-the-module-system compatible fashion, meaning if a `#![no_std]` crate imported `std` and tried to use `thread_local!` it would fail due to missing a lookup of an internal macro. This commit switches the macro to instead use `$crate` to invoke other macros, ensuring that it'll work when `thread_local!` is imported alone.
Diffstat (limited to 'src/libsyntax')
0 files changed, 0 insertions, 0 deletions
