mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
slight Default cleanup for option
This commit is contained in:
parent
fa45efaafb
commit
d9c213cd5e
@ -3420,9 +3420,10 @@ impl DumpMonoStatsFormat {
|
||||
|
||||
/// `-Zpolonius` values, enabling the borrow checker polonius analysis, and which version: legacy,
|
||||
/// or future prototype.
|
||||
#[derive(Clone, Copy, PartialEq, Hash, Debug)]
|
||||
#[derive(Clone, Copy, PartialEq, Hash, Debug, Default)]
|
||||
pub enum Polonius {
|
||||
/// The default value: disabled.
|
||||
#[default]
|
||||
Off,
|
||||
|
||||
/// Legacy version, using datalog and the `polonius-engine` crate. Historical value for `-Zpolonius`.
|
||||
@ -3432,12 +3433,6 @@ pub enum Polonius {
|
||||
Next,
|
||||
}
|
||||
|
||||
impl Default for Polonius {
|
||||
fn default() -> Self {
|
||||
Polonius::Off
|
||||
}
|
||||
}
|
||||
|
||||
impl Polonius {
|
||||
/// Returns whether the legacy version of polonius is enabled
|
||||
pub fn is_legacy_enabled(&self) -> bool {
|
||||
|
Loading…
Reference in New Issue
Block a user