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

Bail if targets require nonexistent feature. #4874

Closed
wants to merge 1 commit into from

Conversation

lukaslueg
Copy link
Contributor

Bin-, bench-, test- and example-targets may specify a set of required
features. Before this commit, it was possible to specify features not
declared in [features], which could be confusing in case of typos. This
is now a hard error during manifest-parsing.

Fixes #4854

Bin-, bench-, test- and example-targets may specify a set of required
features. Before this commit, it was possible to specify features not
declared in [features], which could be confusing in case of typos. This
is now a hard error during manifest-parsing.

Fixes rust-lang#4854
@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@lukaslueg
Copy link
Contributor Author

Well I just realized this is simply wrong. Features can be given as foo_dep/foo_feature, which is not in the manifest's feature list at all.

@lukaslueg lukaslueg closed this Dec 29, 2017
@lukaslueg lukaslueg deleted the issue4854 branch March 27, 2018 06:12
bors added a commit that referenced this pull request Jul 28, 2020
…huss

Check manifest for requiring nonexistent features

Fixes #4854: Examples requiring a nonexistent feature should be an error

Thanks @lukaslueg with his #4874 for the inspiration!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants