Skip to content

Commit 751fd47

Browse files
committed
fix(toml): Don't double-warn when underscore is used in workspace dep
1 parent 4cc8283 commit 751fd47

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/cargo/util/toml/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -904,14 +904,6 @@ fn inner_dependency_inherit_with<'a>(
904904
this could become a hard error in the future"
905905
))
906906
}
907-
deprecated_underscore(
908-
&dependency.default_features2,
909-
&dependency.default_features,
910-
"default-features",
911-
name,
912-
"dependency",
913-
warnings,
914-
);
915907
inherit()?.get_dependency(name, package_root).map(|d| {
916908
match d {
917909
manifest::TomlDependency::Simple(s) => {

tests/testsuite/bad_config.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,8 +1426,6 @@ fn workspace_default_features2() {
14261426
"\
14271427
warning: [CWD]/workspace_only/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
14281428
(in the `dep_workspace_only` dependency)
1429-
warning: [CWD]/package_only/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
1430-
(in the `dep_package_only` dependency)
14311429
Locking 4 packages to latest compatible versions
14321430
Checking dep_package_only v0.1.0 ([CWD]/dep_package_only)
14331431
Checking dep_workspace_only v0.1.0 ([CWD]/dep_workspace_only)

0 commit comments

Comments
 (0)