diff options
Diffstat (limited to 'cli/standalone/mod.rs')
-rw-r--r-- | cli/standalone/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/standalone/mod.rs b/cli/standalone/mod.rs index 32ae771c1..47a660fe1 100644 --- a/cli/standalone/mod.rs +++ b/cli/standalone/mod.rs @@ -488,6 +488,11 @@ pub async fn run( if metadata.unstable { checker.enable_legacy_unstable(); } + for feature in metadata.unstable_features { + // `metadata` is valid for the whole lifetime of the program, so we + // can leak the string here. + checker.enable_feature(feature.leak()); + } checker }); let worker_factory = CliMainWorkerFactory::new( |