{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/30678","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/30678/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/30678/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/30678/events","html_url":"https://github.com/rust-lang/rust/pull/30678","id":124616499,"number":30678,"title":"Replace no_elf_tls with target_thread_local","user":{"login":"Amanieu","id":278509,"avatar_url":"https://avatars.githubusercontent.com/u/278509?v=3","gravatar_id":"","url":"https://api.github.com/users/Amanieu","html_url":"https://github.com/Amanieu","followers_url":"https://api.github.com/users/Amanieu/followers","following_url":"https://api.github.com/users/Amanieu/following{/other_user}","gists_url":"https://api.github.com/users/Amanieu/gists{/gist_id}","starred_url":"https://api.github.com/users/Amanieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amanieu/subscriptions","organizations_url":"https://api.github.com/users/Amanieu/orgs","repos_url":"https://api.github.com/users/Amanieu/repos","events_url":"https://api.github.com/users/Amanieu/events{/privacy}","received_events_url":"https://api.github.com/users/Amanieu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"brson","id":147214,"avatar_url":"https://avatars.githubusercontent.com/u/147214?v=3","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-01-02T23:06:10Z","updated_at":"2016-01-05T19:19:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/30678","html_url":"https://github.com/rust-lang/rust/pull/30678","diff_url":"https://github.com/rust-lang/rust/pull/30678.diff","patch_url":"https://github.com/rust-lang/rust/pull/30678.patch"},"body":"#30417 replaced the `--disable-elf-tls` configure option with a `cfg(target_thread_local)` target attribute for `thread_local!`, but `scoped_thread_local!` still used the old `cfg(no_elf_tls)` option. This PR changes `scoped_thread_local!` to use `cfg(target_thread_local)` to determine whether the `#[thread_local]` attribute is available. It also removes the `--disable-elf-tls` configure option since it is no longer used.\r\n\r\nI also re-enabled the use of `#[thread_local]` on AArch64. It was originally disabled in the PR that introduced AArch64 (#19790), but the reasons for this were not explained. `#[thread_local]` seems to work fine in my tests on AArch64, so I don't think this should be an issue.\r\n\r\ncc @alexcrichton @akiss77"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/169102382","html_url":"https://github.com/rust-lang/rust/pull/30678#issuecomment-169102382","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/30678","id":169102382,"user":{"login":"brson","id":147214,"avatar_url":"https://avatars.githubusercontent.com/u/147214?v=3","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T19:19:06Z","updated_at":"2016-01-05T19:19:06Z","body":"r? @alexcrichton "}}