Returns the names of all experimental flags that were explicitly set by the user.
(&self)
| 72 | impl ExperimentalArgs { |
| 73 | /// Returns the names of all experimental flags that were explicitly set by the user. |
| 74 | pub fn active_flags(&self) -> Vec<&'static str> { |
| 75 | let mut flags = Vec::new(); |
| 76 | if self.experimental_fair_sched { |
| 77 | flags.push("--experimental-fair-sched"); |
| 78 | } |
| 79 | if self.experimental_rep_bulk_cost { |
| 80 | flags.push("--experimental-rep-bulk-cost"); |
| 81 | } |
| 82 | if self.experimental_disable_pythonmalloc_override { |
| 83 | flags.push("--experimental-disable-pythonmalloc-override"); |
| 84 | } |
| 85 | flags |
| 86 | } |
| 87 | |
| 88 | /// If any experimental flags are active, prints a warning to stderr. |
| 89 | pub fn warn_if_active(&self) { |