mirror of
https://github.com/rust-lang/cargo
synced 2024-10-01 21:43:45 +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 {
|
||||
match registry.query_vec(&query, QueryKind::Fuzzy) {
|
||||
match registry.query_vec(&query, QueryKind::Exact) {
|
||||
std::task::Poll::Ready(res) => {
|
||||
break res?;
|
||||
}
|
||||
|
|
|
@ -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"));
|
||||
|
||||
|
|
|
@ -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"] }
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue