We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a946fab commit b012615Copy full SHA for b012615
compiler/rustc_session/src/config.rs
@@ -3427,7 +3427,7 @@ pub enum Polonius {
3427
/// Legacy version, using datalog and the `polonius-engine` crate. Historical value for `-Zpolonius`.
3428
Legacy,
3429
3430
- /// In-tree experimentation
+ /// In-tree prototype, extending the NLL infrastructure.
3431
Next,
3432
}
3433
@@ -3442,4 +3442,9 @@ impl Polonius {
3442
pub fn is_legacy_enabled(&self) -> bool {
3443
matches!(self, Polonius::Legacy)
3444
3445
+
3446
+ /// Returns whether the "next" version of polonius is enabled
3447
+ pub fn is_next_enabled(&self) -> bool {
3448
+ matches!(self, Polonius::Next)
3449
+ }
3450
0 commit comments