Sort edits prior to deduplicating in quotation fix (#11452)

## Summary

We already have handling for "references that get quoted within our
quoted references", but we were assuming a specific ordering in the way
edits were generated.

Closes https://github.com/astral-sh/ruff/issues/11449.
This commit is contained in:
Charlie Marsh 2024-05-16 12:13:09 -04:00 committed by GitHub
parent 42b655b24f
commit 43e8147eaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 75 additions and 3 deletions

View file

@ -91,7 +91,7 @@ pub fn test_snippet(contents: &str, settings: &LinterSettings) -> Vec<Message> {
}
thread_local! {
static MAX_ITERATIONS: std::cell::Cell<usize> = const { std::cell::Cell::new(8) };
static MAX_ITERATIONS: std::cell::Cell<usize> = const { std::cell::Cell::new(10) };
}
pub fn set_max_iterations(max: usize) {