-
Notifications
You must be signed in to change notification settings - Fork 13k
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
don't enable parking_lot nightly features #84614
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
Hmm, has this caused trouble in practice? Maybe it sense to wait until this breaks things before turning it off, with the intention of re-enabling it once the breakage is fixed? |
This is causing trouble right now in #84556. A few rabbit holes down, I found myself opening this PR. ;) |
@bors try @rust-timer queue I suspect this'll likely be a minor-ish performance hit, in which case we'll want to re-add it after we fix parking_lot on nightly, but if it isn't then we can just keep it non-nightly I suspect. |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 170a10b with merge 8e137b1d29b0369e5c35127a5b3c13c786ab6487... |
☀️ Try build successful - checks-actions |
Queued 8e137b1d29b0369e5c35127a5b3c13c786ab6487 with parent da43ee8, future comparison URL. |
Finished benchmarking try commit (8e137b1d29b0369e5c35127a5b3c13c786ab6487): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
Seems to not actually matter much for performance, if at all, so we can probably not re-enable it. Alternatively, this is not the only place nightly is actually enabled, and this PR does nothing. @bors r+ |
📌 Commit 170a10b has been approved by |
☀️ Test successful - checks-actions |
I did try to exclude this by using FWIW, the issue with re-enabling this is that we might end up in a situation where we actually rely on the nightly-only feature, so the next recursive bootstrap problem might be harder to resolve (since just using stable parking_lot might not be an option). |
Having the compiler itself depend on external libraries that use nightly features can lead to "fun" bootstrap situations. Within the rustc repo we use
cfg(bootstrap)
to resolve those, but that is not a reasonable option for external dependencies.So I propose we stop enabling the "nightly" feature of
parking_lot
here. In my experiments, this then indeed leads to the feature not being enabled (i.e., nothing else enables it), and everything still builds. However, this means parking_lot'sRwLock
will no longer have hardware lock elision for readers -- I hope that is okay to lose in exchange for less bootstrap brain twisting. ;)Cc @Amanieu