Skip to content
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 compatibility with priority-queue 1.3.0 #745

Merged
merged 1 commit into from
Nov 21, 2022

Conversation

mtreinish
Copy link
Member

In priority-queue 1.3.0 compilation of rustworkx-core's min_cut module will fail because of the lack of a semicolon on the change_priority_by() call. This wasn't an issue with priority-queue 1.2.0 and for rustworkx development we are using priority-queue 1.2.0 because the priority queue 1.3.0 requires a rust version newer than our msrv. However, adding a semicolon to fix this compilation issue is also still compatibile with priority-queue 1.2.0. This commit does that to fix compatibility with newer versions of rustworkx-core that want to leverage the latest version of priority queue where they don't have the same MSRV constraints as rustworkx.

Fixes #744

In priority-queue 1.3.0 compilation of rustworkx-core's min_cut module
will fail because of the lack of a semicolon on the change_priority_by()
call. This wasn't an issue with priority-queue 1.2.0 and for rustworkx
development we are using priority-queue 1.2.0 because the priority queue
1.3.0 requires a rust version newer than our msrv. However, adding a
semicolon to fix this compilation issue is also still compatibile with
priority-queue 1.2.0. This commit does that to fix compatibility with
newer versions of rustworkx-core that want to leverage the latest
version of priority queue where they don't have the same MSRV
constraints as rustworkx.

Fixes Qiskit#744
@mtreinish mtreinish added the stable-backport-potential This PR or issue is potentially worth backporting for inclusion in a stable branch label Nov 21, 2022
Copy link
Collaborator

@IvanIsCoding IvanIsCoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@IvanIsCoding IvanIsCoding added the automerge Queue a approved PR for merging label Nov 21, 2022
@coveralls
Copy link

Pull Request Test Coverage Report for Build 3518129383

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.0002%) to 96.949%

Totals Coverage Status
Change from base Build 3511094385: 0.0002%
Covered Lines: 13506
Relevant Lines: 13931

💛 - Coveralls

@mergify mergify bot merged commit 46a8799 into Qiskit:main Nov 21, 2022
mergify bot pushed a commit that referenced this pull request Nov 21, 2022
In priority-queue 1.3.0 compilation of rustworkx-core's min_cut module
will fail because of the lack of a semicolon on the change_priority_by()
call. This wasn't an issue with priority-queue 1.2.0 and for rustworkx
development we are using priority-queue 1.2.0 because the priority queue
1.3.0 requires a rust version newer than our msrv. However, adding a
semicolon to fix this compilation issue is also still compatibile with
priority-queue 1.2.0. This commit does that to fix compatibility with
newer versions of rustworkx-core that want to leverage the latest
version of priority queue where they don't have the same MSRV
constraints as rustworkx.

Fixes #744

(cherry picked from commit 46a8799)
mergify bot added a commit that referenced this pull request Nov 21, 2022
In priority-queue 1.3.0 compilation of rustworkx-core's min_cut module
will fail because of the lack of a semicolon on the change_priority_by()
call. This wasn't an issue with priority-queue 1.2.0 and for rustworkx
development we are using priority-queue 1.2.0 because the priority queue
1.3.0 requires a rust version newer than our msrv. However, adding a
semicolon to fix this compilation issue is also still compatibile with
priority-queue 1.2.0. This commit does that to fix compatibility with
newer versions of rustworkx-core that want to leverage the latest
version of priority queue where they don't have the same MSRV
constraints as rustworkx.

Fixes #744

(cherry picked from commit 46a8799)

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Queue a approved PR for merging stable-backport-potential This PR or issue is potentially worth backporting for inclusion in a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation error
3 participants