Fixes #13121: Use Exact query during populating features. Update test

fix target output
This commit is contained in:
sanchit 2023-12-29 05:02:50 +05:30
parent 61f6248a07
commit e46d80e24e
4 changed files with 8 additions and 4 deletions

View file

@ -934,7 +934,7 @@ fn populate_available_features(
}
let possibilities = loop {
match registry.query_vec(&query, QueryKind::Fuzzy) {
match registry.query_vec(&query, QueryKind::Exact) {
std::task::Poll::Ready(res) => {
break res?;
}

View file

@ -55,7 +55,7 @@ fn case() {
])
.current_dir(cwd)
.assert()
.failure()
.success()
.stdout_matches_path(curr_dir!().join("stdout.log"))
.stderr_matches_path(curr_dir!().join("stderr.log"));

View file

@ -3,3 +3,6 @@
[package]
name = "cargo-list-test-fixture"
version = "0.0.0"
[dependencies]
package-with-feature = { git = "[ROOTURL]/git-package", version = "0.1.3", features = ["target_feature"] }

View file

@ -1,4 +1,5 @@
Updating git repository `[ROOTURL]/git-package`
Adding package-with-feature (git) to dependencies.
error: unrecognized feature for crate package-with-feature: target_feature
no features available for crate package-with-feature
Features:
+ target_feature
Updating git repository `[ROOTURL]/git-package`