about summary refs log tree commit diff
path: root/compiler/rustc_session/src
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2023-06-30 13:18:11 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2023-10-04 16:16:12 +0000
commitb01261528655a27c57ff9a229702cba1b660743a (patch)
tree4c391cfb44740b906a1c24c2d2658d3a86174111 /compiler/rustc_session/src
parenta946fabd48791a769abfa56e2c38f403ac2277fa (diff)
downloadrust-b01261528655a27c57ff9a229702cba1b660743a.tar.gz
rust-b01261528655a27c57ff9a229702cba1b660743a.zip
extend Polonius options helpers
Diffstat (limited to 'compiler/rustc_session/src')
-rw-r--r--compiler/rustc_session/src/config.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs
index e8ae969861e..e03b66f293e 100644
--- a/compiler/rustc_session/src/config.rs
+++ b/compiler/rustc_session/src/config.rs
@@ -3427,7 +3427,7 @@ pub enum Polonius {
     /// Legacy version, using datalog and the `polonius-engine` crate. Historical value for `-Zpolonius`.
     Legacy,
 
-    /// In-tree experimentation
+    /// In-tree prototype, extending the NLL infrastructure.
     Next,
 }
 
@@ -3442,4 +3442,9 @@ impl Polonius {
     pub fn is_legacy_enabled(&self) -> bool {
         matches!(self, Polonius::Legacy)
     }
+
+    /// Returns whether the "next" version of polonius is enabled
+    pub fn is_next_enabled(&self) -> bool {
+        matches!(self, Polonius::Next)
+    }
 }