You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #14412 - linyihai:fix-pre-release, r=epage
fix: Limiting pre-release match semantics to use only on `OptVersionReq::Req`
### What does this PR try to resolve?
The prerelease matches semantics should be only used on `OptVersionReq::Req`, but it dosn't. The other `OptVersionReq` types have specify matches logic already, for example a `OptVersionReq::Precise` will failed on `matches_prerelease`, see #14140 (comment)
### How should we test and review this PR?
the first commit added the test, the second commit updated the test and fixed the issue.
### Additional information
0 commit comments