Skip to content

[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

Merged
merged 1 commit into from
Apr 26, 2018
Merged

Conversation

alexcrichton
Copy link
Member

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.

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.
@rust-highfive
Copy link
Contributor

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive
Copy link
Contributor

warning Warning warning

  • Pull requests are usually filed against the master branch for this repo, but this one is against beta. Please double check that you specified the right target!

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 26, 2018
@alexcrichton
Copy link
Member Author

r? @Mark-Simulacrum

@alexcrichton
Copy link
Member Author

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.

@Mark-Simulacrum
Copy link
Member

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

@bors
Copy link
Collaborator

bors commented Apr 26, 2018

📌 Commit 93fb6b6 has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 26, 2018
@bors
Copy link
Collaborator

bors commented Apr 26, 2018

⌛ Testing commit 93fb6b6 with merge f442a18...

bors added a commit that referenced this pull request Apr 26, 2018
[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.
@bors
Copy link
Collaborator

bors commented Apr 26, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: Mark-Simulacrum
Pushing f442a18 to beta...

@bors bors merged commit 93fb6b6 into rust-lang:beta Apr 26, 2018
@alexcrichton alexcrichton deleted the beta-next branch April 27, 2018 02:51
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants