diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2023-06-30 13:18:11 +0000 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2023-10-04 16:16:12 +0000 |
| commit | b01261528655a27c57ff9a229702cba1b660743a (patch) | |
| tree | 4c391cfb44740b906a1c24c2d2658d3a86174111 /compiler/rustc_session/src | |
| parent | a946fabd48791a769abfa56e2c38f403ac2277fa (diff) | |
| download | rust-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.rs | 7 |
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) + } } |
