Returns the names of all experimental flags that were explicitly set by the user.
(&self)
| 30 | impl ExperimentalArgs { |
| 31 | /// Returns the names of all experimental flags that were explicitly set by the user. |
| 32 | pub fn active_flags(&self) -> Vec<&'static str> { |
| 33 | let mut flags = Vec::new(); |
| 34 | if self.experimental_fair_sched { |
| 35 | flags.push("--experimental-fair-sched"); |
| 36 | } |
| 37 | if self.cycle_estimation { |
| 38 | flags.push("--cycle-estimation"); |
| 39 | } |
| 40 | flags |
| 41 | } |
| 42 | |
| 43 | /// If any experimental flags are active, prints a warning to stderr. |
| 44 | pub fn warn_if_active(&self) { |