-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Fix link error with #[thread_local] introduced by #71192 #73065
Conversation
@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. |
📌 Commit e9b67d2 has been approved by |
So what was the problem here? Did some component "forget" to look into |
@bors r- I just noticed that the regression test also passes on nightly, so it's not really testing the problem being fixed here. |
It still fails on the latest nightly for me. Make sure you're compiling with optimizations enabled and with multiple codegen units. |
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 |
I can reproduce the error with just |
@bors r+ |
📌 Commit 2af53e9 has been approved by |
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
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 |
⌛ Testing commit 01e29c7 with merge 5cbaf60ed01b7b1e19b34b258adfce40d8924827... |
💔 Test failed - checks-azure |
Spurious failure:
|
@bors retry |
☀️ Test successful - checks-azure |
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#71192 rust-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