mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:24:57 +00:00
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:
parent
42b655b24f
commit
43e8147eaf
4 changed files with 75 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue