Removes the given value from all `AllocationUnit`s. This is used at value definition points to remove any stale versions of a value (e.g. from a previous loop iteration).
(&mut self, value: Value)
| 87 | /// This is used at value definition points to remove any stale versions of |
| 88 | /// a value (e.g. from a previous loop iteration). |
| 89 | fn remove_value(&mut self, value: Value) { |
| 90 | for values in self.unit_values.values_mut() { |
| 91 | if let Some(idx) = values.iter().position(|&v| v == value) { |
| 92 | values.remove(idx); |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | /// Adds the given value to the set of values for an `AllocationUnit`. |
| 98 | fn add_value(&mut self, unit: AllocationUnit, value: Value) { |
no test coverage detected