-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #7010 - alexcrichton:less-features, r=ehuss
Don't synthesize feature diretives for non-optional deps Currently when Cargo is invoked on the command like `cargo build --features foo/bar` then it will actually always compile the current crate with `feature = "foo"` even if `foo` is a non-optional dependency. This isn't intended because the crate doesn't actually have a `foo` feature as so no directive should be emitted or passed to the compiler. This was discovered in rust-lang/rust where Cargo is being built with the `rustc-workspace-hack` feature but when the RLS depends on Cargo it doesn't enable the same feature. This feature, however, doesn't actually exist for Cargo!
- Loading branch information
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters