cargo test --features dep/feat
does not imply --features dep
in beta
#9265
Labels
A-features
Area: features — conditional compilation
In rustc 1.50.0,
cargo --features dep/feat
also seems to imply--features dep
, but this does not seem to be the case in 1.51.0-beta.6.For example, for two library crates
foo
andbar
.foo/Cargo.toml:
bar/Cargo.toml:
This works with stable rustc 1.50.0 (cb75ad5db 2021-02-10):
$ cargo +stable test --features foo/foof -p foo
This gives an error with beta rustc 1.51.0-beta.6 (6a1835ad7 2021-03-12):
I don't know if this used to work unintentionally up to 1.50.0 and the "glitch got fixed" in the beta.
@rustbot modify labels: +regression-from-stable-to-beta -regression-untriaged
The text was updated successfully, but these errors were encountered: