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

chore: Fix new lints in rust 1.83 #1686

Merged
merged 6 commits into from
Nov 26, 2024
Merged

chore: Fix new lints in rust 1.83 #1686

merged 6 commits into from
Nov 26, 2024

Conversation

aborgna-q
Copy link
Collaborator

@aborgna-q aborgna-q commented Nov 25, 2024

New rust coming on 2024-11-28. This PR fixes new lints that would make our CI runs fail.

A big noisy change is due to public test definitions now triggering the missing_docs lint.
See rust-lang/rust#130025. This can be fixed avoided either by adding the docs or by making functions private.

Passing check: https://github.com/CQCL/hugr/actions/runs/12013283775/job/33486450494#step:7:1

Copy link

codecov bot commented Nov 25, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 86.34%. Comparing base (953df6b) to head (c73b8c9).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
hugr-model/src/v0/text/print.rs 0.00% 1 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1686      +/-   ##
==========================================
- Coverage   86.34%   86.34%   -0.01%     
==========================================
  Files         166      166              
  Lines       29747    29747              
  Branches    26659    26659              
==========================================
- Hits        25685    25684       -1     
- Misses       2536     2537       +1     
  Partials     1526     1526              
Flag Coverage Δ
python 92.42% <ø> (ø)
rust 85.63% <0.00%> (-0.01%) ⬇️

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 marked this pull request as ready for review November 25, 2024 15:34
@aborgna-q aborgna-q requested a review from a team as a code owner November 25, 2024 15:34
@aborgna-q aborgna-q requested a review from cqc-alec November 25, 2024 15:34
pub fn any_nonempty_smolstr() -> SBoxedStrategy<SmolStr> {
ANY_NONEMPTY_STRING.to_owned().prop_map_into().sboxed()
}

/// A strategy for generating an arbitrary nonempty identity [String].
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is an identity String?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

identifier*

hugr-core/src/proptest.rs Outdated Show resolved Hide resolved
@aborgna-q aborgna-q enabled auto-merge November 25, 2024 16:07
@aborgna-q aborgna-q requested a review from cqc-alec November 25, 2024 16:07
Co-authored-by: Alec Edgington <54802828+cqc-alec@users.noreply.github.com>
@aborgna-q aborgna-q added this pull request to the merge queue Nov 26, 2024
Merged via the queue into main with commit fa35840 Nov 26, 2024
22 of 23 checks passed
@aborgna-q aborgna-q deleted the ab/rust-1.83 branch November 26, 2024 09:14
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