Skip to content

Make Term::unwrap_positive crate-private - #86

Merged
konstin merged 1 commit into
mainfrom
konsti/private-unwrap-positive
Sep 19, 2026
Merged

konstin merged 1 commit into
mainfrom
konsti/private-unwrap-positive

Conversation

@konstin

@konstin konstin commented Sep 19, 2026

Copy link
Copy Markdown
Member

Make Term::unwrap_positive crate-private, matching upstream. External callers can borrow the version set by matching Term::Positive.

Paired with astral-sh/uv#21647, which removes uv's remaining call.

@codspeed

codspeed Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 7 untouched benchmarks


Comparing konsti/private-unwrap-positive (b90e227) with main (bc92830)

Open in CodSpeed

@konstin
konstin force-pushed the konsti/private-unwrap-positive branch from d78c6ad to b90e227 Compare September 19, 2026 22:49
@konstin
konstin marked this pull request as ready for review September 19, 2026 22:50
@konstin
konstin merged commit 36cce12 into main Sep 19, 2026
10 checks passed
konstin added a commit that referenced this pull request Sep 19, 2026
Make `Term::unwrap_positive` crate-private, matching upstream. External
callers can borrow the version set by matching `Term::Positive`.

Paired with astral-sh/uv#21647, which removes
uv's remaining call.
konstin added a commit that referenced this pull request Oct 17, 2026
Make `Term::unwrap_positive` crate-private, matching upstream. External
callers can borrow the version set by matching `Term::Positive`.

Paired with astral-sh/uv#21647, which removes
uv's remaining call.
konstin added a commit that referenced this pull request Oct 17, 2026
Make `Term::unwrap_positive` crate-private, matching upstream. External
callers can borrow the version set by matching `Term::Positive`.

Paired with astral-sh/uv#21647, which removes
uv's remaining call.
konstin added a commit to astral-sh/uv that referenced this pull request Oct 21, 2026
Avoid calling into PubGrub's implementation details by using dedicated
methods. Match `Term::Positive` directly to borrow the version range
without requiring a public `Term::unwrap_positive`.

Paired with astral-sh/pubgrub#80 and
astral-sh/pubgrub#86. Use the released
astral-pubgrub 0.7.0 and astral-version-ranges 0.2.3, with the unstable
state API enabled for uv's incremental resolver.

Stacked on #21648.
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.

1 participant