mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
fix(toml): Don't double-warn when underscore is used in workspace dep
This commit is contained in:
parent
4cc82833bd
commit
751fd47d34
@ -904,14 +904,6 @@ fn inner_dependency_inherit_with<'a>(
|
|||||||
this could become a hard error in the future"
|
this could become a hard error in the future"
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
deprecated_underscore(
|
|
||||||
&dependency.default_features2,
|
|
||||||
&dependency.default_features,
|
|
||||||
"default-features",
|
|
||||||
name,
|
|
||||||
"dependency",
|
|
||||||
warnings,
|
|
||||||
);
|
|
||||||
inherit()?.get_dependency(name, package_root).map(|d| {
|
inherit()?.get_dependency(name, package_root).map(|d| {
|
||||||
match d {
|
match d {
|
||||||
manifest::TomlDependency::Simple(s) => {
|
manifest::TomlDependency::Simple(s) => {
|
||||||
|
@ -1426,8 +1426,6 @@ fn workspace_default_features2() {
|
|||||||
"\
|
"\
|
||||||
warning: [CWD]/workspace_only/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
|
warning: [CWD]/workspace_only/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
|
||||||
(in the `dep_workspace_only` dependency)
|
(in the `dep_workspace_only` dependency)
|
||||||
warning: [CWD]/package_only/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
|
|
||||||
(in the `dep_package_only` dependency)
|
|
||||||
Locking 4 packages to latest compatible versions
|
Locking 4 packages to latest compatible versions
|
||||||
Checking dep_package_only v0.1.0 ([CWD]/dep_package_only)
|
Checking dep_package_only v0.1.0 ([CWD]/dep_package_only)
|
||||||
Checking dep_workspace_only v0.1.0 ([CWD]/dep_workspace_only)
|
Checking dep_workspace_only v0.1.0 ([CWD]/dep_workspace_only)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user