-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[beta] Remove dependency on parking_lot
#50254
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Unfortunately the `parking_lot` crate enables the `synchapi` feature of the `winapi` crate which activates a dependency on `libsynchronization.a`. The MinGW version of `libsynchronization.a` pulls in a dependency `api-ms-core-synch-l1-2-0.dll` which causes rustc to not work on Windows 7 (tracked in rust-lang#49438) The `parking_lot` crate is not currently used in the compiler unless parallel queries are enabled. This feature is not enabled by default and not used at all in the beta/stable compilers. As a result the dependency in this commit was removed and the CI build which checks parallel queries was disabled. This isn't a great long-term solution but should hopefully be enough of a patch for beta to buy us some more time to figure this out.
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
This is not a complete fix for the issue and I'd like to possibly send a different fix to rust-lang/rust's master branch. Will continue discussion on the issue. |
This approach seems fine to me -- I agree it's non-ideal long term, but we need to get this on beta so we can release stable successfully AIUI. As such, @bors r+ p=1 |
📌 Commit 93fb6b6 has been approved by |
[beta] Remove dependency on `parking_lot` Unfortunately the `parking_lot` crate enables the `synchapi` feature of the `winapi` crate which activates a dependency on `libsynchronization.a`. The MinGW version of `libsynchronization.a` pulls in a dependency `api-ms-core-synch-l1-2-0.dll` which causes rustc to not work on Windows 7 (tracked in #49438) The `parking_lot` crate is not currently used in the compiler unless parallel queries are enabled. This feature is not enabled by default and not used at all in the beta/stable compilers. As a result the dependency in this commit was removed and the CI build which checks parallel queries was disabled. This isn't a great long-term solution but should hopefully be enough of a patch for beta to buy us some more time to figure this out.
☀️ Test successful - status-appveyor, status-travis |
Unfortunately the
parking_lot
crate enables thesynchapi
feature of thewinapi
crate which activates a dependency onlibsynchronization.a
. The MinGWversion of
libsynchronization.a
pulls in a dependencyapi-ms-core-synch-l1-2-0.dll
which causes rustc to not work on Windows 7(tracked in #49438)
The
parking_lot
crate is not currently used in the compiler unless parallelqueries are enabled. This feature is not enabled by default and not used at all
in the beta/stable compilers. As a result the dependency in this commit was
removed and the CI build which checks parallel queries was disabled.
This isn't a great long-term solution but should hopefully be enough of a patch
for beta to buy us some more time to figure this out.