Commits
Click on a commit to change the comparison rangerefactor(linter): add `CompositeFix::merge_fixes_fallible` method (#14093)
Add a method `CompositeFix::merge_fixes_fallible` which returns `Result::Err` in case of overlapping fixes or other illegal states, instead of panicking in debug mode.
`CompositeFix::merge_fixes` does the same as it did before, but uses `merge_fixes_fallible` internally.
Use an error type `MergeFixesError` instead of `String` to avoid adding string formatting overhead when the primary use case in release mode is to ignore the errors anyway.
`merge_fixes_fallible` will be used in JS plugins where we don't want to panic on these illegal states, but output a diagnostic instead.2 months ago
by overlookmotel