summaryrefslogtreecommitdiff
path: root/cli/factory.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/factory.rs')
-rw-r--r--cli/factory.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/factory.rs b/cli/factory.rs
index bee805215..a82cd3ab9 100644
--- a/cli/factory.rs
+++ b/cli/factory.rs
@@ -678,11 +678,10 @@ impl CliFactory {
self.services.feature_checker.get_or_init(|| {
let mut checker = FeatureChecker::default();
checker.set_exit_cb(Box::new(crate::unstable_exit_cb));
- // TODO(bartlomieju): enable, once we deprecate `--unstable` in favor
- // of granular --unstable-* flags.
- // feature_checker.set_warn_cb(Box::new(crate::unstable_warn_cb));
+ checker.set_warn_cb(Box::new(crate::unstable_warn_cb));
if self.options.legacy_unstable_flag() {
checker.enable_legacy_unstable();
+ checker.warn_on_legacy_unstable();
}
let unstable_features = self.options.unstable_features();
for (flag_name, _, _) in crate::UNSTABLE_GRANULAR_FLAGS {