]> git.lizzy.rs Git - rust.git/commit
auto merge of #7751 : alexcrichton/rust/finish-tls, r=pcwalton
authorbors <bors@rust-lang.org>
Sun, 14 Jul 2013 17:19:21 +0000 (10:19 -0700)
committerbors <bors@rust-lang.org>
Sun, 14 Jul 2013 17:19:21 +0000 (10:19 -0700)
commit1c35ab322ff2f26962a3550fffc2fa4154224b64
treed95eb9acc27f980f2365330b3aa9566e8eec2010
parent66e2857253ff9bc8ce299398ad5bb346d64e3fc3
parent9fd2ac7428afa4f414f32b8b4876ca817ee85f16
auto merge of #7751 : alexcrichton/rust/finish-tls, r=pcwalton

This changes the interface to `get`, and it also changes the keys to be static slices instead of static functions.

This allows the removal of the `unsafe` interface because while functions can monomorphize from different types to the same actual function, static slices cannot do this.

From at least what I can tell, we don't need to worry about LLVM coalescing these addresses. If we ever use the `unnamed_addr` it looks like there's cause for worry, but there doesn't appear to be any coalescing atm.