Added a test to verify that feature flags that are enabled by default are stable (#11275)

We've had a few cases recently where someone enabled a feature flag for
a feature that's still under development or experimental. This test
should prevent this.
This commit is contained in:
Eric Traut
2026-02-12 17:53:15 -08:00
committed by GitHub
parent 9cf7a07281
commit 537102e657

View File

@@ -688,6 +688,21 @@ mod tests {
}
}
#[test]
fn default_enabled_features_are_stable() {
for spec in FEATURES {
if spec.default_enabled {
assert_eq!(
spec.stage,
Stage::Stable,
"feature `{}` is enabled by default but is not stable ({:?})",
spec.key,
spec.stage
);
}
}
}
#[cfg(target_os = "linux")]
#[test]
fn use_linux_sandbox_bwrap_is_experimental_on_linux() {