[INFO] fetching crate mpatch 1.4.0... [INFO] testing mpatch-1.4.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate mpatch 1.4.0 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate mpatch 1.4.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate mpatch 1.4.0 [INFO] tweaked toml for crates.io crate mpatch 1.4.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate mpatch 1.4.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate mpatch 1.4.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 305e4094f7445b28870353042a51ec7f1419fc4576163e93b2dd418557885fe4 [INFO] running `Command { std: "docker" "start" "-a" "305e4094f7445b28870353042a51ec7f1419fc4576163e93b2dd418557885fe4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "305e4094f7445b28870353042a51ec7f1419fc4576163e93b2dd418557885fe4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "305e4094f7445b28870353042a51ec7f1419fc4576163e93b2dd418557885fe4", kill_on_drop: false }` [INFO] [stdout] 305e4094f7445b28870353042a51ec7f1419fc4576163e93b2dd418557885fe4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b81895d354b9e33cb1247f965596dd88fd5a1920285c6ef567553820a63b70f3 [INFO] running `Command { std: "docker" "start" "-a" "b81895d354b9e33cb1247f965596dd88fd5a1920285c6ef567553820a63b70f3", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling jiff v0.2.16 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling env_filter v0.1.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling clap v4.5.53 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling mpatch v1.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.35s [INFO] running `Command { std: "docker" "inspect" "b81895d354b9e33cb1247f965596dd88fd5a1920285c6ef567553820a63b70f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b81895d354b9e33cb1247f965596dd88fd5a1920285c6ef567553820a63b70f3", kill_on_drop: false }` [INFO] [stdout] b81895d354b9e33cb1247f965596dd88fd5a1920285c6ef567553820a63b70f3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3baf7461c379b5fa1175324dc6bca29203f780db76da07635e821c4ccfebc7c6 [INFO] running `Command { std: "docker" "start" "-a" "3baf7461c379b5fa1175324dc6bca29203f780db76da07635e821c4ccfebc7c6", kill_on_drop: false }` [INFO] [stderr] Compiling zerocopy v0.8.28 [INFO] [stderr] Compiling zerocopy-derive v0.8.28 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling is-terminal v0.4.17 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling indoc v2.0.7 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling mpatch v1.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling half v2.7.1 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 18.48s [INFO] running `Command { std: "docker" "inspect" "3baf7461c379b5fa1175324dc6bca29203f780db76da07635e821c4ccfebc7c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3baf7461c379b5fa1175324dc6bca29203f780db76da07635e821c4ccfebc7c6", kill_on_drop: false }` [INFO] [stdout] 3baf7461c379b5fa1175324dc6bca29203f780db76da07635e821c4ccfebc7c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1a36a43fb948c023aa957d5db3d5234c0f36d51a1d92224ce88ec556b5bc1633 [INFO] running `Command { std: "docker" "start" "-a" "1a36a43fb948c023aa957d5db3d5234c0f36d51a1d92224ce88ec556b5bc1633", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mpatch-fbc17756ec5c8cea) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mpatch-4635b96fc2ca463e) [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/patch_apply_tests.rs (/opt/rustwide/target/debug/deps/patch_apply_tests-716164601a527d91) [INFO] [stdout] [INFO] [stdout] running 235 tests [INFO] [stdout] test ensure_path_is_safe_tests::test_path_normalization_within_project_succeeds ... ok [INFO] [stdout] test ensure_path_is_safe_tests::test_traversal_path_to_nonexistent_file_fails ... ok [INFO] [stdout] test ensure_path_is_safe_tests::test_safe_path_to_nonexistent_file_succeeds ... ok [INFO] [stdout] test ensure_path_is_safe_tests::test_traversal_path_fails ... ok [INFO] [stdout] test extended_stress_tests::test_apply_patch_with_huge_offset ... ok [INFO] [stdout] test extended_stress_tests::test_parse_auto_mixed_formats ... ok [INFO] [stdout] test fuzzy_finder_diagnostics::finder_single_insertion_start ... ok [INFO] [stdout] test fuzzy_finder_diagnostics::test_apply_options_convenience_constructors ... ok [INFO] [stdout] test ensure_path_is_safe_tests::test_safe_path_succeeds ... ok [INFO] [stdout] test extended_stress_tests::test_fuzzy_crlf_mismatch ... ok [INFO] [stdout] test fuzzy_logic_edge_cases::test_conflict_markers_adjacent ... ok [INFO] [stdout] test hunk_finder_tests::test_default_finder_ambiguous_match ... ok [INFO] [stdout] test hunk_finder_tests::test_default_finder_exact_match ... ok [INFO] [stdout] test fuzzy_logic_edge_cases::test_large_offset_application ... ok [INFO] [stdout] test fuzzy_logic_edge_cases::test_hunks_out_of_order ... ok [INFO] [stdout] test ensure_path_is_safe_tests::test_absolute_path_fails ... ok [INFO] [stdout] test parse_single_patch_tests::test_err_multiple_patches_in_one_block ... ok [INFO] [stdout] test parse_single_patch_tests::test_err_multiple_patches_in_separate_blocks ... ok [INFO] [stdout] test parse_single_patch_tests::test_err_parse_error_propagates ... ok [INFO] [stdout] test fuzzy_finder_diagnostics::finder_mixed_change_modification ... ok [INFO] [stdout] test fuzzy_finder_diagnostics::finder_single_deletion_middle ... ok [INFO] [stdout] test parse_single_patch_tests::test_err_no_patches_found ... ok [INFO] [stdout] test fuzzy_logic_edge_cases::test_fuzzy_restore_truncated_context_at_eof ... ok [INFO] [stdout] test fuzzy_logic_edge_cases::test_fuzzy_skip_stale_context_middle ... ok [INFO] [stdout] test fuzzy_logic_edge_cases::test_fuzzy_indentation_context_preserved ... ok [INFO] [stdout] test fuzzy_finder_diagnostics::finder_single_insertion_middle ... ok [INFO] [stdout] test parse_single_patch_tests::test_success_case ... ok [INFO] [stdout] test fuzzy_logic_edge_cases::test_fuzzy_interleaved_local_edits ... ok [INFO] [stdout] test patch_content_str_tests::test_err_multiple_patches_found ... ok [INFO] [stdout] test patch_content_str_tests::test_err_no_patches_found ... ok [INFO] [stdout] test patch_content_str_tests::test_err_parse_error ... ok [INFO] [stdout] test patch_content_str_tests::test_err_apply_error ... ok [INFO] [stdout] test patch_content_str_tests::test_file_creation_success ... ok [INFO] [stdout] test patch_content_str_tests::test_success_case ... ok [INFO] [stdout] test hunk_finder_tests::test_default_finder_fuzzy_match ... ok [INFO] [stdout] test test_apply_inverted_patch_undoes_changes ... ok [INFO] [stdout] test test_apply_hunk_to_lines_in_place ... ok [INFO] [stdout] test test_apply_multiple_hunks_in_one_file ... ok [INFO] [stdout] test extended_stress_tests::test_fuzzy_unicode_context ... ok [INFO] [stdout] test test_apply_hunk_to_file_end ... ok [INFO] [stdout] test fuzzy_finder_diagnostics::finder_multiple_insertions ... ok [INFO] [stdout] test test_ambiguous_match_fails ... ok [INFO] [stdout] test test_ambiguous_match_resolved_by_line_number ... ok [INFO] [stdout] test test_apply_hunk_with_single_line_match_block ... ok [INFO] [stdout] test test_apply_hunk_to_file_beginning ... ok [INFO] [stdout] test test_ambiguous_match_fails_with_equidistant_line_hint ... ok [INFO] [stdout] test test_ambiguous_fuzzy_match_fails ... ok [INFO] [stdout] test test_apply_options_convenience_constructors ... ok [INFO] [stdout] test test_apply_options_builder ... ok [INFO] [stdout] test test_apply_options_fluent_methods ... ok [INFO] [stdout] test extended_stress_tests::test_fuzzy_repeated_lines_ambiguity_resolution ... ok [INFO] [stdout] test fuzzy_logic_edge_cases::test_fuzzy_extra_newlines_in_target ... ok [INFO] [stdout] test test_apply_patch_to_lines ... ok [INFO] [stdout] test test_block_with_only_hunk_no_header_is_skipped ... ok [INFO] [stdout] test test_apply_result_helpers ... ok [INFO] [stdout] test test_apply_patch_to_empty_file_resulting_in_newline ... ok [INFO] [stdout] test test_cli_simulation_conflict_marker_input ... ok [INFO] [stdout] test test_cli_simulation_raw_diff_input ... ok [INFO] [stdout] test test_apply_simple_patch ... ok [INFO] [stdout] test test_apply_patch_at_end_of_file_with_fuzz_and_missing_context ... ok [INFO] [stdout] test fuzzy_logic_edge_cases::test_fuzzy_insertion_clobbers_context ... ok [INFO] [stdout] test test_apply_patches_to_dir ... ok [INFO] [stdout] test test_apply_to_nonexistent_file_fails_if_not_creation ... ok [INFO] [stdout] test test_apply_to_path_that_is_a_directory ... ok [INFO] [stdout] test test_conflict_marker_pure_deletion_no_separator ... ok [INFO] [stdout] test test_conflict_markers_apply_end_to_end ... ok [INFO] [stdout] test test_conflict_markers_ignore_normal_text ... ok [INFO] [stdout] test test_apply_patch_where_file_is_prefix_of_context ... ok [INFO] [stdout] test test_conflict_markers_empty_block ... ok [INFO] [stdout] test test_conflict_markers_false_positive_check ... ok [INFO] [stdout] test test_conflict_markers_in_comments_ignored ... ok [INFO] [stdout] test test_conflict_markers_in_rust_block ... ok [INFO] [stdout] test test_conflict_markers_missing_separator ... ok [INFO] [stdout] test test_conflict_markers_indented ... ok [INFO] [stdout] test test_conflict_marker_detection_false_positive_markdown_header ... ok [INFO] [stdout] test test_cli_simulation_markdown_input ... ok [INFO] [stdout] test test_conflict_markers_git_style_labels ... ok [INFO] [stdout] test test_conflict_markers_missing_start ... ok [INFO] [stdout] test test_conflict_marker_detection_requires_start_and_end ... ok [INFO] [stdout] test test_conflict_markers_malformed_sequence ... ok [INFO] [stdout] test test_conflict_markers_pure_addition ... ok [INFO] [stdout] test test_conflict_markers_unclosed ... ok [INFO] [stdout] test test_conflict_markers_with_trailing_text ... ok [INFO] [stdout] test test_conflict_markers_multiple_blocks_in_one_file ... ok [INFO] [stdout] test test_conflict_markers_pure_deletion ... ok [INFO] [stdout] test test_conflict_markers_with_context ... ok [INFO] [stdout] test test_complex_apply_and_reverse_cycle ... ok [INFO] [stdout] test test_deleted_file_mode_header_is_not_context ... ok [INFO] [stdout] test test_creation_of_empty_file_is_skipped ... ok [INFO] [stdout] test test_detect_conflict_markers_missing_end ... ok [INFO] [stdout] test test_detect_conflict_markers_standard ... ok [INFO] [stdout] test test_detect_false_positive_bitwise_shift ... ok [INFO] [stdout] test test_detect_false_positive_comparison ... ok [INFO] [stdout] test test_detect_false_positive_hr ... ok [INFO] [stdout] test test_detect_false_positive_plus_list ... ok [INFO] [stdout] test test_detect_false_positive_list_item ... ok [INFO] [stdout] test test_crlf_line_endings ... ok [INFO] [stdout] test test_detect_conflict_markers_git_style ... ok [INFO] [stdout] test test_creation_patch_fails_on_non_empty_file ... ok [INFO] [stdout] test test_detect_conflict_markers_missing_middle ... ok [INFO] [stdout] test test_detect_markdown_patch_keyword ... ok [INFO] [stdout] test test_detect_unified_hunk_only ... ok [INFO] [stdout] test test_detect_unified_requires_plus_after_minus ... ok [INFO] [stdout] test test_diff_git_header_only_is_ignored ... ok [INFO] [stdout] test test_detect_unified_standard_headers ... ok [INFO] [stdout] test test_detect_markdown_standard ... ok [INFO] [stdout] test test_double_inversion_is_identity ... ok [INFO] [stdout] test test_extended_git_headers ... ok [INFO] [stdout] test test_dry_run ... ok [INFO] [stdout] test test_file_creation_empty_content_does_not_create_file ... ok [INFO] [stdout] test test_detect_markdown_with_language_hint ... ok [INFO] [stdout] test test_dry_run_deletion_preserves_file ... ok [INFO] [stdout] test test_file_creation ... ok [INFO] [stdout] test test_detect_unified_git_header ... ok [INFO] [stdout] test test_find_hunk_location_exact_match ... ok [INFO] [stdout] test test_find_hunk_location_in_lines ... ok [INFO] [stdout] test test_find_hunk_location_not_found ... ok [INFO] [stdout] test test_file_creation_with_unicode_path ... ok [INFO] [stdout] test test_file_creation_with_spaces_in_path ... ok [INFO] [stdout] test test_find_hunk_location_fuzzy_match ... ok [INFO] [stdout] test test_finder_with_missing_line_in_patch_context ... ok [INFO] [stdout] test test_file_deletion_by_removing_all_content ... ok [INFO] [stdout] test test_file_creation_in_subdirectory ... ok [INFO] [stdout] test test_fuzzy_indentation_drift ... ok [INFO] [stdout] test test_fuzzy_match_with_duplicated_context_line_insertion ... ok [INFO] [stdout] test test_fuzzy_match_below_threshold_fails ... ok [INFO] [stdout] test test_fuzzy_match_with_insertion_at_hunk_start ... ok [INFO] [stdout] test test_fuzzy_match_with_extra_line_in_patch_context ... ok [INFO] [stdout] test test_fuzzy_match_with_internal_insertion ... ok [INFO] [stdout] test test_fuzzy_match_ignores_indentation ... ok [INFO] [stdout] test test_fuzzy_match_with_missing_line_in_patch_context ... ok [INFO] [stdout] test test_fuzzy_match_succeeds ... ok [INFO] [stdout] test test_fuzzy_match_preserves_different_file_context ... ok [INFO] [stdout] test test_horizontal_rule_in_markdown_code_block ... ok [INFO] [stdout] test test_fuzzy_deletion_removes_file ... ok [INFO] [stdout] test test_git_diff_header_is_not_absorbed_into_previous_hunk ... ok [INFO] [stdout] test test_git_diff_header_triggers_parsing ... ok [INFO] [stdout] test test_heuristic_skips_indented_unified_headers ... ok [INFO] [stdout] test test_heuristic_skips_yaml_separators ... ok [INFO] [stdout] test test_find_hunk_location_ambiguous ... ok [INFO] [stdout] test test_heuristic_trigger_but_invalid_diff_is_ignored ... ok [INFO] [stdout] test test_hunk_semantic_helpers ... ok [INFO] [stdout] test test_fuzzy_insertion_clobbers_context ... ok [INFO] [stdout] test test_indented_diff_block_is_ignored ... ok [INFO] [stdout] test test_fuzzy_match_with_insertion_at_hunk_end ... ok [INFO] [stdout] test test_hunk_with_no_changes_is_skipped ... ok [INFO] [stdout] test test_invert_conflict_markers ... ok [INFO] [stdout] test test_fuzzy_match_with_more_context_and_insertion ... ok [INFO] [stdout] test test_invert_mixed_hunk ... ok [INFO] [stdout] test test_invert_creation_becomes_deletion ... ok [INFO] [stdout] test test_invert_multiple_files ... ok [INFO] [stdout] test test_malformed_diff_returns_error_not_ignored ... ok [INFO] [stdout] test test_fuzzy_match_with_multiple_insertions ... ok [INFO] [stdout] test test_fuzzy_match_with_multiple_differences_preserves_context ... ok [INFO] [stdout] test test_invert_simple_modification ... ok [INFO] [stdout] test test_invert_deletion_becomes_creation ... ok [INFO] [stdout] test test_invert_empty_patch_list ... ok [INFO] [stdout] test test_markdown_block_with_git_headers ... ok [INFO] [stdout] test test_markdown_fence_indentation_strictness ... ok [INFO] [stdout] test test_parse_auto_conflict_markers ... ok [INFO] [stdout] test test_parse_auto_markdown ... ok [INFO] [stdout] test test_parse_auto_raw_diff ... ok [INFO] [stdout] test test_nested_diff_block_is_ignored ... ok [INFO] [stdout] test test_new_file_mode_header_is_not_context ... ok [INFO] [stdout] test test_parse_conflict_markers ... ok [INFO] [stdout] test test_multiple_blocks_with_noise ... ok [INFO] [stdout] test test_parse_accepts_all_code_blocks ... ok [INFO] [stdout] test test_parse_auto_fallback_to_raw ... ok [INFO] [stdout] test test_parse_closing_fence_longer_than_opening ... ok [INFO] [stdout] test test_parse_diff_block_with_header_only ... ok [INFO] [stdout] test test_match_with_different_trailing_whitespace ... ok [INFO] [stdout] test test_parse_conflict_markers_variable_fence ... ok [INFO] [stdout] test test_parse_diff_with_fence_like_context_line ... ok [INFO] [stdout] test test_parse_empty_hunk_header_allowed ... ok [INFO] [stdout] test test_parse_fence_trailing_whitespace ... ok [INFO] [stdout] test test_parse_diff_with_nested_indented_code_block ... ok [INFO] [stdout] test test_parse_error_on_missing_file_header ... ok [INFO] [stdout] test test_parse_diff_with_git_headers ... ok [INFO] [stdout] test test_parse_file_creation_with_a_dev_null ... ok [INFO] [stdout] test test_no_newline_at_end_of_file ... ok [INFO] [stdout] test test_parse_diff_without_ab_prefix ... ok [INFO] [stdout] test test_parse_file_creation_with_dev_null ... ok [INFO] [stdout] test test_parse_empty_diff_block ... ok [INFO] [stdout] test hunk_finder_tests::test_default_finder_not_found ... ok [INFO] [stdout] test test_parse_file_creation_without_b_prefix ... ok [INFO] [stdout] test test_apply_to_readonly_file_fails ... FAILED [INFO] [stdout] test test_parse_finds_patch_in_misleading_language_block ... ok [INFO] [stdout] test test_parse_finds_patch_in_unlabeled_block ... ok [INFO] [stdout] test test_parse_flexible_diff_block_headers ... ok [INFO] [stdout] test test_parse_hunk_header_line_number ... ok [INFO] [stdout] test test_parse_ignores_irrelevant_code_blocks ... ok [INFO] [stdout] test test_parse_mixed_content_robustness ... ok [INFO] [stdout] test test_parse_multiple_blocks_mixed_fences ... ok [INFO] [stdout] test test_parse_multiple_diff_blocks ... ok [INFO] [stdout] test test_parse_multiple_files_in_one_block ... ok [INFO] [stdout] test test_parse_multiple_sections_for_same_file_in_one_block ... ok [INFO] [stdout] test test_parse_patch_block_header ... ok [INFO] [stdout] test test_parse_patches_empty_input ... ok [INFO] [stdout] test test_parse_patches_error_on_missing_header ... ok [INFO] [stdout] test test_parse_patches_file_creation ... ok [INFO] [stdout] test test_hunk_applier_iterator ... ok [INFO] [stdout] test test_parse_patches_from_lines ... ok [INFO] [stdout] test test_parse_patches_from_lines_error ... ok [INFO] [stdout] test test_parse_patches_merges_sections_for_same_file ... ok [INFO] [stdout] test test_parse_patches_multi_file_raw_diff ... ok [INFO] [stdout] test test_parse_patches_no_newline ... ok [INFO] [stdout] test test_parse_patches_raw_diff ... ok [INFO] [stdout] test test_parse_patches_whitespace_input ... ok [INFO] [stdout] test test_parse_patches_with_git_headers ... ok [INFO] [stdout] test test_parse_shorter_closing_fence_ignored ... ok [INFO] [stdout] test test_parse_simple_diff ... ok [INFO] [stdout] test test_patch_and_hunk_display_format ... ok [INFO] [stdout] test test_patch_content_str_accepts_markdown ... ok [INFO] [stdout] test test_partial_apply_fails_on_second_hunk ... ok [INFO] [stdout] test test_patch_content_str_accepts_raw_diff ... ok [INFO] [stdout] test test_patch_from_texts ... ok [INFO] [stdout] test test_patch_from_texts_uses_raw_parser ... ok [INFO] [stdout] test test_patch_from_texts_no_change ... ok [INFO] [stdout] test test_patch_is_creation ... ok [INFO] [stdout] test test_patch_content_str_preserves_no_newline_on_partial_patch ... ok [INFO] [stdout] test test_patch_to_empty_file ... ok [INFO] [stdout] test test_path_traversal_is_blocked ... ok [INFO] [stdout] test test_path_traversal_with_dot_is_blocked ... ok [INFO] [stdout] test test_path_traversal_with_absolute_path_is_blocked ... ok [INFO] [stdout] test test_path_normalization_within_project ... ok [INFO] [stdout] test test_strict_apply_variants ... ok [INFO] [stdout] test test_patch_inversion ... ok [INFO] [stdout] test test_smart_indentation_tabs_to_tabs ... ok [INFO] [stdout] test test_preserves_no_newline_when_patch_does_not_touch_eof ... ok [INFO] [stdout] test test_smart_indentation_adjustment ... ok [INFO] [stdout] test test_parse_auto_multiple_raw_patches ... ok [INFO] [stdout] test test_yaml_block_with_header_like_content_is_ignored ... ok [INFO] [stdout] test test_newline_only_file_preservation ... ok [INFO] [stdout] test test_parse_patches_file_deletion ... ok [INFO] [stdout] test test_patch_is_deletion ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test_apply_to_readonly_file_fails stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_apply_to_readonly_file_fails' (98) panicked at tests/patch_apply_tests.rs:1955:5: [INFO] [stdout] Applying patch to a read-only file should result in a PermissionDenied error [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5bbd5a18cb9a - std[e72de78501789eb0]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5bbd5a18cb9a - std[e72de78501789eb0]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5bbd5a18cb9a - std[e72de78501789eb0]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x5bbd5a18cb9a - <::print::DisplayBacktrace as core[6aaeda2c7ad07a48]::fmt::Display>::fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x5bbd5a1a4a0a - ::fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x5bbd5a1a4a0a - core[6aaeda2c7ad07a48]::fmt::write [INFO] [stdout] 6: 0x5bbd5a192bd2 - std[e72de78501789eb0]::io::default_write_fmt::> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5bbd5a192bd2 - as std[e72de78501789eb0]::io::Write>::write_fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x5bbd5a169acf - ::print [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x5bbd5a169acf - std[e72de78501789eb0]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x5bbd5a1842e9 - std[e72de78501789eb0]::panicking::default_hook [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x5bbd59fd15cc - core[6aaeda2c7ad07a48]::ops::function::Fn<(&'a std[e72de78501789eb0]::panic::PanicHookInfo<'b>,), Output = ()> + core[6aaeda2c7ad07a48]::marker::Sync + core[6aaeda2c7ad07a48]::marker::Send> as core[6aaeda2c7ad07a48]::ops::function::Fn<(&std[e72de78501789eb0]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 12: 0x5bbd59fd15cc - test[4f12b380f1fb68c5]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x5bbd5a184562 - core[6aaeda2c7ad07a48]::ops::function::Fn<(&'a std[e72de78501789eb0]::panic::PanicHookInfo<'b>,), Output = ()> + core[6aaeda2c7ad07a48]::marker::Sync + core[6aaeda2c7ad07a48]::marker::Send> as core[6aaeda2c7ad07a48]::ops::function::Fn<(&std[e72de78501789eb0]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 14: 0x5bbd5a184562 - std[e72de78501789eb0]::panicking::panic_with_hook [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x5bbd5a169bba - std[e72de78501789eb0]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:691:13 [INFO] [stdout] 16: 0x5bbd5a1612f9 - std[e72de78501789eb0]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x5bbd5a16a92d - __rustc[78a4cf188af856fc]::rust_begin_unwind [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x5bbd5a1a527c - core[6aaeda2c7ad07a48]::panicking::panic_fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x5bbd59c90e0c - patch_apply_tests[16544a36cd0c993e]::test_apply_to_readonly_file_fails [INFO] [stdout] at /opt/rustwide/workdir/tests/patch_apply_tests.rs:1955:5 [INFO] [stdout] 20: 0x5bbd59c75b77 - patch_apply_tests[16544a36cd0c993e]::test_apply_to_readonly_file_fails::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/tests/patch_apply_tests.rs:1927:39 [INFO] [stdout] 21: 0x5bbd59d19ed6 - >::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 22: 0x5bbd59fc56ab - core[6aaeda2c7ad07a48]::result::Result<(), alloc[28d2dab30c1dc666]::string::String> as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 23: 0x5bbd59fc56ab - test[4f12b380f1fb68c5]::__rust_begin_short_backtrace::, fn() -> core[6aaeda2c7ad07a48]::result::Result<(), alloc[28d2dab30c1dc666]::string::String>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:663:18 [INFO] [stdout] 24: 0x5bbd59fd209b - test[4f12b380f1fb68c5]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:686:74 [INFO] [stdout] 25: 0x5bbd59fd209b - as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 26: 0x5bbd59fd209b - std[e72de78501789eb0]::panicking::catch_unwind::do_call::, core[6aaeda2c7ad07a48]::result::Result<(), alloc[28d2dab30c1dc666]::string::String>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:581:40 [INFO] [stdout] 27: 0x5bbd59fd209b - std[e72de78501789eb0]::panicking::catch_unwind::, core[6aaeda2c7ad07a48]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:544:19 [INFO] [stdout] 28: 0x5bbd59fd209b - std[e72de78501789eb0]::panic::catch_unwind::, core[6aaeda2c7ad07a48]::result::Result<(), alloc[28d2dab30c1dc666]::string::String>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panic.rs:359:14 [INFO] [stdout] 29: 0x5bbd59fd209b - test[4f12b380f1fb68c5]::run_test_in_process [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:686:27 [INFO] [stdout] 30: 0x5bbd59fd209b - test[4f12b380f1fb68c5]::run_test::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:607:43 [INFO] [stdout] 31: 0x5bbd59fcd7b4 - test[4f12b380f1fb68c5]::run_test::{closure#1} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:637:41 [INFO] [stdout] 32: 0x5bbd59fcd7b4 - std[e72de78501789eb0]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 33: 0x5bbd59fd4ca2 - std[e72de78501789eb0]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 34: 0x5bbd59fd4ca2 - ::{closure#1}::{closure#0}> as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 35: 0x5bbd59fd4ca2 - std[e72de78501789eb0]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:581:40 [INFO] [stdout] 36: 0x5bbd59fd4ca2 - std[e72de78501789eb0]::panicking::catch_unwind::<(), core[6aaeda2c7ad07a48]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:544:19 [INFO] [stdout] 37: 0x5bbd59fd4ca2 - std[e72de78501789eb0]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panic.rs:359:14 [INFO] [stdout] 38: 0x5bbd59fd4ca2 - std[e72de78501789eb0]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 39: 0x5bbd59fd4ca2 - ::{closure#1} as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 40: 0x5bbd5a18bf7f - + core[6aaeda2c7ad07a48]::marker::Send> as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/alloc/src/boxed.rs:2240:9 [INFO] [stdout] 41: 0x5bbd5a18bf7f - ::new::thread_start [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 42: 0x74503336baa4 - [INFO] [stdout] 43: 0x7450333f8a64 - clone [INFO] [stdout] 44: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test_apply_to_readonly_file_fails [INFO] [stdout] [INFO] [stdout] test result: FAILED. 234 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test patch_apply_tests` [INFO] running `Command { std: "docker" "inspect" "1a36a43fb948c023aa957d5db3d5234c0f36d51a1d92224ce88ec556b5bc1633", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a36a43fb948c023aa957d5db3d5234c0f36d51a1d92224ce88ec556b5bc1633", kill_on_drop: false }` [INFO] [stdout] 1a36a43fb948c023aa957d5db3d5234c0f36d51a1d92224ce88ec556b5bc1633