Uh oh!
There was an error while loading. Please reload this page.
Fix link error with #[thread_local] introduced by #71192 - #73065
Conversation
oli-obk
commented
Jun 6, 2020
@bors r+ Nominating for beta backport because the bug carried over to beta and while I'm not sure if it's exploitable without feature gates, I'd rather not take the risk. |
bors
commented
Jun 6, 2020
📌 Commit e9b67d2 has been approved by |
RalfJung
commented
Jun 10, 2020
So what was the problem here? Did some component "forget" to look into |
oli-obk
commented
Jun 10, 2020
@bors r- I just noticed that the regression test also passes on nightly, so it's not really testing the problem being fixed here. |
Amanieu
commented
Jun 10, 2020
It still fails on the latest nightly for me. Make sure you're compiling with optimizations enabled and with multiple codegen units. |
oli-obk
commented
Jun 10, 2020
Since the test neither specifies optimizations nor CGU, it won't test this in CI. Just turning on optimizations in the playground doesn't work: https://play.rust-lang.org/?version=nightly&mode=release&edition=2018&gist=95fdf2822783b106f65757321e6ce187 Can you add your command line flags to the test via a |
Amanieu
commented
Jun 10, 2020
I can reproduce the error with just |
oli-obk
commented
Jun 11, 2020
@bors r+ |
bors
commented
Jun 11, 2020
📌 Commit 2af53e9 has been approved by |
oli-obk
commented
Jun 12, 2020
The thing causing a bug here was simply that we didn't collect the DefId of the tls anymore, which randomly works in the tests we've had up to here, but was broken likely in cross crate and multi-cgu scenarios. |
Fix link error with #[thread_local] introduced by rust-lang#71192 r? @oli-obk
tmiasko
commented
Jun 13, 2020
Failed in rollup #73299, on wasm32-unknown-unknown target without threads.Maybe build-pass would be sufficient to detect link error. |
Fix link error with #[thread_local] introduced by rust-lang#71192 r? @oli-obk
Fix link error with #[thread_local] introduced by rust-lang#71192 r? @oli-obk
Fix link error with #[thread_local] introduced by rust-lang#71192 r? @oli-obk
Fix link error with #[thread_local] introduced by rust-lang#71192 r? @oli-obk
This one is beta nominated so bumping the priority ... @bors p=1 |
bors
commented
Jun 17, 2020
⌛ Testing commit 01e29c7 with merge 5cbaf60ed01b7b1e19b34b258adfce40d8924827... |
bors
commented
Jun 17, 2020
💔 Test failed - checks-azure |
mati865
commented
Jun 17, 2020
Spurious failure: |
Amanieu
commented
Jun 17, 2020
@bors retry |
bors
commented
Jun 18, 2020
bors
commented
Jun 18, 2020
☀️ Test successful - checks-azure |
pnkfelix
commented
Jun 18, 2020
Discussed in T-compiler meeting; beta approved. |
…ulacrum [beta] backports This PR backports the following: * Make novel structural match violations not a `bug` rust-lang#73446 * linker: Never pass `-no-pie` to non-gnu linkers rust-lang#73384 * Disable the `SimplifyArmIdentity` pass rust-lang#73262 * Allow inference regions when relating consts rust-lang#73225 * Fix link error with #[thread_local] introduced by rust-lang#71192rust-lang#73065 * Ensure stack when building MIR for matches rust-lang#72941 * Don't create impl candidates when obligation contains errors rust-lang#73005 r? @ghost
r? @oli-obk