You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let public_feature = manifest_gctx.features.require(Feature::public_dependency());
2018
+
let with_z_public = manifest_gctx.gctx.cli_unstable().public_dependency;
2019
+
let with_public_feature = public_feature.is_ok();
2020
+
if !with_public_feature && (!with_z_public && !manifest_gctx.gctx.nightly_features_allowed)
2021
+
{
2022
+
public_feature?;
2023
+
}
1998
2024
1999
2025
if dep.kind() != DepKind::Normal{
2000
-
bail!("'public' specifier can only be used on regular dependencies, not {:?} dependencies", dep.kind());
2026
+
match(with_public_feature, with_z_public){
2027
+
(true, _) => bail!("'public' specifier can only be used on regular dependencies, not {:?} dependencies", dep.kind()),
2028
+
(_,true) => bail!("'public' specifier can only be used on regular dependencies, not {:?} dependencies", dep.kind()),
2029
+
// If public feature isn't enabled in nightly, we instead warn that.
2030
+
(false,false) => manifest_gctx.warnings.push(format!("'public' specifier can only be used on regular dependencies, not {:?} dependencies", dep.kind())),
0 commit comments