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: std.collections.insert wrong output order #1513

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

aborgna-q
Copy link
Collaborator

We changed the Either type to use the right variant to represent success.

The insert operations returns nothing on success, and the element on error. We had the incorrect order here.

@aborgna-q aborgna-q requested a review from a team as a code owner September 3, 2024 13:57
Copy link

codecov bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.29%. Comparing base (be9e2be) to head (2a6ab0a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1513   +/-   ##
=======================================
  Coverage   87.29%   87.29%           
=======================================
  Files         126      126           
  Lines       21633    21633           
  Branches    18662    18662           
=======================================
  Hits        18884    18884           
  Misses       1979     1979           
  Partials      770      770           
Flag Coverage Δ
python 92.72% <ø> (ø)
rust 86.42% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aborgna-q aborgna-q added this pull request to the merge queue Sep 3, 2024
Merged via the queue into main with commit 6ab1f75 Sep 3, 2024
20 of 21 checks passed
@aborgna-q aborgna-q deleted the ab/list-insert-outs branch September 3, 2024 14:10
@hugrbot hugrbot mentioned this pull request Sep 3, 2024
github-merge-queue bot pushed a commit that referenced this pull request Sep 3, 2024
Broken in #1513, it's failing on main

Should we make this a required check?
github-merge-queue bot pushed a commit that referenced this pull request Sep 4, 2024
## 🤖 New release
* `hugr`: 0.12.0 -> 0.12.1
* `hugr-core`: 0.9.0 -> 0.9.1
* `hugr-passes`: 0.8.0 -> 0.8.1
* `hugr-cli`: 0.5.0 -> 0.6.0

<details><summary><i><b>Changelog</b></i></summary><p>

## `hugr`
<blockquote>

## 0.12.1 (2024-09-04)

### Bug Fixes

- `std.collections.insert` wrong output order
([#1513](#1513))

### Features

- Op replacement and lowering functions
([#1509](#1509))
</blockquote>

## `hugr-core`
<blockquote>

## 0.9.1 (2024-09-04)

### Bug Fixes

- `std.collections.insert` wrong output order
([#1513](#1513))
</blockquote>

## `hugr-passes`
<blockquote>

## 0.8.1 (2024-09-04)

### Features

- Op replacement and lowering functions
([#1509](#1509))
</blockquote>

## `hugr-cli`
<blockquote>

## 0.6.0 (2024-09-04)

### Features

- [**breaking**] Allow registry specification in `run_dump`
([#1501](#1501))
- [**breaking**] Add `Package::validate` and return `ExtensionRegistry`
in helpers. ([#1507](#1507))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).
@hugrbot hugrbot mentioned this pull request Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants