Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo-tree: Panic with -Zfeatures and "all" targets #8109

Closed
ehuss opened this issue Apr 14, 2020 · 0 comments · Fixed by #8269
Closed

cargo-tree: Panic with -Zfeatures and "all" targets #8109

ehuss opened this issue Apr 14, 2020 · 0 comments · Fixed by #8269
Labels
A-features2 Area: issues specifically related to the v2 feature resolver C-bug Category: bug Command-tree

Comments

@ehuss
Copy link
Contributor

ehuss commented Apr 14, 2020

A manifest with:

[target.'cfg(windows)'.dependencies]
log = {version="*", features=["serde"]}

Running cargo tree --target=all -Zfeatures=all panics with:

thread 'main' panicked at 'features did not find PackageId { name: "log", version: "0.4.8", source: "registry `https://github.com/rust-lang/crates.io-index`" } false', src/cargo/core/resolver/features.rs:231:17

The problem is that the FeatureResolver needs to be taught what "all" means.

@ehuss ehuss added C-bug Category: bug Command-tree A-features2 Area: issues specifically related to the v2 feature resolver labels Apr 14, 2020
@bors bors closed this as completed in 40d566d May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-features2 Area: issues specifically related to the v2 feature resolver C-bug Category: bug Command-tree
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant