We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52411ae commit 547a4c5Copy full SHA for 547a4c5
compiler/rustc_session/src/config.rs
@@ -3377,7 +3377,7 @@ pub enum Polonius {
3377
/// Legacy version, using datalog and the `polonius-engine` crate. Historical value for `-Zpolonius`.
3378
Legacy,
3379
3380
- /// In-tree experimentation
+ /// In-tree prototype, extending the NLL infrastructure.
3381
Next,
3382
}
3383
@@ -3392,4 +3392,9 @@ impl Polonius {
3392
pub fn is_legacy_enabled(&self) -> bool {
3393
matches!(self, Polonius::Legacy)
3394
3395
+
3396
+ /// Returns whether the "next" version of polonius is enabled
3397
+ pub fn is_next_enabled(&self) -> bool {
3398
+ matches!(self, Polonius::Next)
3399
+ }
3400
0 commit comments