git-interactive-rebase-tool: fix build with rust 1.77

This commit is contained in:
Sandro Jäckel 2024-04-20 16:49:51 +02:00
parent 3582d852c1
commit 421191ba79
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -12,10 +12,9 @@ rustPlatform.buildRustPackage rec {
};
postPatch = ''
# unknown lint: `ffi_unwind_calls`
# note: the `ffi_unwind_calls` lint is unstable
substituteInPlace src/main.rs src/{config,core,display,input,git,runtime,todo_file,testutils,view}/src/lib.rs \
--replace "ffi_unwind_calls," ""
# error: lint `unused_tuple_struct_fields` has been renamed to `dead_code`
substituteInPlace scripts/data/lints.rs src/main.rs src/{config,core,display,git,input,runtime,testutils,todo_file,view}/src/lib.rs \
--replace-fail "unused_tuple_struct_fields," ""
'';
cargoLock = {