Skip to content

Commit 3aab145

Browse files
committed
fix(resolver): Don't report all versions as rejected
When I copy/pasted the alternative-names code, I didn't notice that the wildcard dependency was used. This does not have a test yet because overly-constrictive dep specs have higher precedence atm (which I plan to also fix).
1 parent 8ec9b1e commit 3aab145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/resolver/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ pub(super) fn activation_error(
305305
} else {
306306
// Maybe something is wrong with the available versions
307307
let mut version_candidates = loop {
308-
match registry.query_vec(&wild_dep, QueryKind::RejectedVersions) {
308+
match registry.query_vec(&dep, QueryKind::RejectedVersions) {
309309
Poll::Ready(Ok(candidates)) => break candidates,
310310
Poll::Ready(Err(e)) => return to_resolve_err(e),
311311
Poll::Pending => match registry.block_until_ready() {

0 commit comments

Comments
 (0)