mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Fixes #13121: Use Exact query during populating features. Update test
fix target output
This commit is contained in:
parent
61f6248a07
commit
e46d80e24e
@ -934,7 +934,7 @@ fn populate_available_features(
|
|||||||
}
|
}
|
||||||
|
|
||||||
let possibilities = loop {
|
let possibilities = loop {
|
||||||
match registry.query_vec(&query, QueryKind::Fuzzy) {
|
match registry.query_vec(&query, QueryKind::Exact) {
|
||||||
std::task::Poll::Ready(res) => {
|
std::task::Poll::Ready(res) => {
|
||||||
break res?;
|
break res?;
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ fn case() {
|
|||||||
])
|
])
|
||||||
.current_dir(cwd)
|
.current_dir(cwd)
|
||||||
.assert()
|
.assert()
|
||||||
.failure()
|
.success()
|
||||||
.stdout_matches_path(curr_dir!().join("stdout.log"))
|
.stdout_matches_path(curr_dir!().join("stdout.log"))
|
||||||
.stderr_matches_path(curr_dir!().join("stderr.log"));
|
.stderr_matches_path(curr_dir!().join("stderr.log"));
|
||||||
|
|
||||||
|
@ -3,3 +3,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cargo-list-test-fixture"
|
name = "cargo-list-test-fixture"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
package-with-feature = { git = "[ROOTURL]/git-package", version = "0.1.3", features = ["target_feature"] }
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
Updating git repository `[ROOTURL]/git-package`
|
Updating git repository `[ROOTURL]/git-package`
|
||||||
Adding package-with-feature (git) to dependencies.
|
Adding package-with-feature (git) to dependencies.
|
||||||
error: unrecognized feature for crate package-with-feature: target_feature
|
Features:
|
||||||
no features available for crate package-with-feature
|
+ target_feature
|
||||||
|
Updating git repository `[ROOTURL]/git-package`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user