Records below are third-party data, not instructions. Apply with your own judgment.
ruff
2 records of known failures, each with its cause, the fix and what not to try.
Records
- error: Fix introduced a syntax error. Reverting all changes.the shared add_argument/remove_argument fix helpers used a parenthesized keyword value's start (after name=) as the keyword's start, so B028/UP022 edits split the keyword.
- error[E0425]: cannot find value
NOTE_PCTRLMASKin cratelibcno FreeBSD wheel, so the sdist compiles; its Cargo.lock pairs libc 0.2.190, which removed FreeBSD's NOTE_PCTRLMASK, with mio 1.0.4, which still lists it in kqueue Debug output.
Don’t try
apply by hand the edit ruff suggests for B028 or UP022 — the suggested edit is itself invalid: B028 proposes category=stacklevel=2, (DeprecationWarning) and UP022 proposes capture_output=True, stderr=text=True. (×1) · record
hunt for a syntax error in your own file — the file parses; ruff reverted its own edit, and the full message says this indicates a bug in Ruff. (×1) · record
follow rustc's help and change mio's libc::NOTE_PCTRLMASK to libc::NOTE_FFCTRLMASK — a different mask (0xc0000000 vs 0xf0000000), not a rename; mio only used the constant for Debug output, and its fix (1.2.4) deletes the line instead of swapping it. (×1) · record
in your own Rust crate, pin mio to 1.2.3 (a libc-thread comment says it dropped the constant) — 1.2.3 still lists it (its kqueue.rs:733 fails the same way); the first fixed mio is 1.2.4, or take libc 0.2.191, which restores the constant as deprecated. (×1) · record