fix(core): retain standalone rename budget preflight semantics
This commit is contained in:
@@ -123,7 +123,6 @@ impl<'i, 's> Plan<'i, 's> {
|
||||
"Source index is stale: original file set or bytes changed.",
|
||||
));
|
||||
}
|
||||
Self::validate_names(self.index, &self.names, budget)?;
|
||||
budget.lowering_entries(current.len(), Span::default())?;
|
||||
budget.lowering_occurrences(self.edits.len(), Span::default())?;
|
||||
let mut previous: Option<Location> = None;
|
||||
@@ -258,6 +257,7 @@ impl<'b, 'i, 's> Composition<'b, 'i, 's> {
|
||||
&self,
|
||||
current: &BTreeMap<usize, String>,
|
||||
) -> Result<OriginalEdits<'_, 'i, 's>, Error> {
|
||||
Plan::validate_names(self.plan.index, &self.plan.names, self.budget)?;
|
||||
self.plan.validate(current, self.budget)?;
|
||||
Ok(OriginalEdits { plan: &self.plan })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user