Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std: Enable usage of thread_local! through imports #55597

Merged
merged 1 commit into from
Nov 6, 2018

Commits on Nov 1, 2018

  1. 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.
    alexcrichton committed Nov 1, 2018
    Configuration menu
    Copy the full SHA
    ff5226c View commit details
    Browse the repository at this point in the history