diff --git a/crates/ruff_linter/src/rules/perflint/rules/manual_list_comprehension.rs b/crates/ruff_linter/src/rules/perflint/rules/manual_list_comprehension.rs index 0283c5a229e2b..d157842e0d590 100644 --- a/crates/ruff_linter/src/rules/perflint/rules/manual_list_comprehension.rs +++ b/crates/ruff_linter/src/rules/perflint/rules/manual_list_comprehension.rs @@ -48,11 +48,6 @@ use ruff_text_size::{Ranged, TextRange}; /// original = list(range(10000)) /// filtered.extend(x for x in original if x % 2) /// ``` -/// -/// Take care that if the original for-loop uses an assignment expression -/// as a conditional, such as `if match:=re.match("\d+","123")`, then -/// the corresponding comprehension must wrap the assignment -/// expression in parentheses to avoid a syntax error. #[derive(ViolationMetadata)] pub(crate) struct ManualListComprehension { is_async: bool,