[INFO] fetching crate sd 1.0.0... [INFO] testing sd-1.0.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate sd 1.0.0 into /workspace/builds/worker-2-tc1/source [INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config.toml [INFO] started tweaking crates.io crate sd 1.0.0 [INFO] finished tweaking crates.io crate sd 1.0.0 [INFO] tweaked toml for crates.io crate sd 1.0.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate sd 1.0.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate sd 1.0.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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ansi-to-html v0.1.3 [INFO] [stderr] Downloaded roff v0.2.1 [INFO] [stderr] Downloaded clap_mangen v0.2.14 [INFO] [stderr] Downloaded proptest v1.3.1 [INFO] [stderr] Downloaded rustix v0.38.20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c44798422f9ae7ae89610ef634676268e764c881778b1f675e02e3e9d09f9e27 [INFO] running `Command { std: "docker" "start" "-a" "c44798422f9ae7ae89610ef634676268e764c881778b1f675e02e3e9d09f9e27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c44798422f9ae7ae89610ef634676268e764c881778b1f675e02e3e9d09f9e27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c44798422f9ae7ae89610ef634676268e764c881778b1f675e02e3e9d09f9e27", kill_on_drop: false }` [INFO] [stdout] c44798422f9ae7ae89610ef634676268e764c881778b1f675e02e3e9d09f9e27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35b35c7eeda9b04b9edf3a4ef180f5e3f7b6a6d6ea2e0a1bf13b2c1eee73db02 [INFO] running `Command { std: "docker" "start" "-a" "35b35c7eeda9b04b9edf3a4ef180f5e3f7b6a6d6ea2e0a1bf13b2c1eee73db02", kill_on_drop: false }` [INFO] [stderr] Compiling rustix v0.38.20 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.10 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling anstyle-parse v0.2.2 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Compiling anstyle v1.0.4 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling clap_lex v0.5.1 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling anstream v0.6.4 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling memmap2 v0.9.0 [INFO] [stderr] Compiling unescape v0.1.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling rayon v1.8.0 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling terminal_size v0.3.0 [INFO] [stderr] Compiling clap_builder v4.4.6 [INFO] [stderr] Compiling tempfile v3.8.0 [INFO] [stderr] Compiling is-terminal v0.4.9 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling clap_derive v4.4.2 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling clap v4.4.6 [INFO] [stderr] Compiling sd v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 36.76s [INFO] running `Command { std: "docker" "inspect" "35b35c7eeda9b04b9edf3a4ef180f5e3f7b6a6d6ea2e0a1bf13b2c1eee73db02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35b35c7eeda9b04b9edf3a4ef180f5e3f7b6a6d6ea2e0a1bf13b2c1eee73db02", kill_on_drop: false }` [INFO] [stdout] 35b35c7eeda9b04b9edf3a4ef180f5e3f7b6a6d6ea2e0a1bf13b2c1eee73db02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b589b78b6058c336cff8fbc77bed048a92aa1fde36c9ada3eec3b2f5d90c3f3d [INFO] running `Command { std: "docker" "start" "-a" "b589b78b6058c336cff8fbc77bed048a92aa1fde36c9ada3eec3b2f5d90c3f3d", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling clap_builder v4.4.6 [INFO] [stderr] Compiling wait-timeout v0.2.0 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling predicates-core v1.0.6 [INFO] [stderr] Compiling termtree v0.4.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rusty-fork v0.3.0 [INFO] [stderr] Compiling rand_xorshift v0.3.0 [INFO] [stderr] Compiling console v0.15.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling predicates-tree v1.0.9 [INFO] [stderr] Compiling rayon v1.8.0 [INFO] [stderr] Compiling roff v0.2.1 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling similar v2.3.0 [INFO] [stderr] Compiling predicates v3.0.4 [INFO] [stderr] Compiling insta v1.34.0 [INFO] [stderr] Compiling clap v4.4.6 [INFO] [stderr] Compiling clap_mangen v0.2.14 [INFO] [stderr] Compiling proptest v1.3.1 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling bstr v1.7.0 [INFO] [stderr] Compiling ansi-to-html v0.1.3 [INFO] [stderr] Compiling assert_cmd v2.0.12 [INFO] [stderr] Compiling sd v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `sd_cross_compile` [INFO] [stdout] --> tests/cli.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | #[cfg(not(sd_cross_compile))] // Cross-compilation does not allow to spawn threads but `command.assert()` would do. [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(sd_cross_compile)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(sd_cross_compile)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 40.12s [INFO] running `Command { std: "docker" "inspect" "b589b78b6058c336cff8fbc77bed048a92aa1fde36c9ada3eec3b2f5d90c3f3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b589b78b6058c336cff8fbc77bed048a92aa1fde36c9ada3eec3b2f5d90c3f3d", kill_on_drop: false }` [INFO] [stdout] b589b78b6058c336cff8fbc77bed048a92aa1fde36c9ada3eec3b2f5d90c3f3d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e640b2f72e89d5c31c199eab02937eb332faf734ad9fbf1216995dde9887484d [INFO] running `Command { std: "docker" "start" "-a" "e640b2f72e89d5c31c199eab02937eb332faf734ad9fbf1216995dde9887484d", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition name: `sd_cross_compile` [INFO] [stderr] --> tests/cli.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | #[cfg(not(sd_cross_compile))] // Cross-compilation does not allow to spawn threads but `command.assert()` would do. [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(sd_cross_compile)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(sd_cross_compile)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `sd` (test "cli") generated 1 warning [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/sd-2bed29b3f4b6a00b) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test cli::tests::debug_assert ... ok [INFO] [stdout] test replacer::tests::default_global ... ok [INFO] [stdout] test replacer::tests::no_unescape_literal_replacements ... ok [INFO] [stdout] test replacer::tests::case_sensitive_default ... ok [INFO] [stdout] test replacer::tests::unescape_regex_replacements ... ok [INFO] [stdout] test replacer::tests::full_word_replace ... ok [INFO] [stdout] test replacer::validate::tests::literal_dollar_sign ... ok [INFO] [stdout] test replacer::validate::tests::wacky_captures ... ok [INFO] [stdout] test replacer::tests::escaped_char_preservation ... ok [INFO] [stdout] test replacer::tests::sanity_check_literal_replacements ... ok [INFO] [stdout] test replacer::tests::validate_ok ... ok [INFO] [stdout] test replacer::tests::validate_err ... ok [INFO] [stdout] test replacer::tests::validate_doesnt_panic ... ok [INFO] [stdout] test replacer::validate::tests::interpolation_matches_upstream ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.71s [INFO] [stdout] [INFO] [stderr] Running tests/cli.rs (/opt/rustwide/target/debug/deps/cli-2fd44429d7458430) [INFO] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test cli::fixed_strings_ambiguous_replace_is_fine ... ok [INFO] [stdout] test cli::ambiguous_replace_variable_width ... ok [INFO] [stdout] test cli::ambiguous_replace_issue_44 ... ok [INFO] [stdout] test cli::ambiguous_replace_multibyte_char ... ok [INFO] [stdout] test cli::in_place_following_symlink ... ok [INFO] [stdout] test cli::limit_replacements_stdin_preview ... ok [INFO] [stdout] test cli::limit_replacements_stdin ... ok [INFO] [stdout] test cli::ambiguous_replace_ensure_styling ... ok [INFO] [stdout] test cli::limit_replacements_file ... ok [INFO] [stdout] test cli::in_place ... ok [INFO] [stdout] test cli::replace_into_stdout ... ok [INFO] [stdout] test cli::stdin ... ok [INFO] [stdout] test cli::ambiguous_replace_basic ... ok [INFO] [stdout] test cli::in_place_with_empty_result_file ... ok [INFO] [stdout] test cli::limit_replacements_file_preview ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.21s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e640b2f72e89d5c31c199eab02937eb332faf734ad9fbf1216995dde9887484d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e640b2f72e89d5c31c199eab02937eb332faf734ad9fbf1216995dde9887484d", kill_on_drop: false }` [INFO] [stdout] e640b2f72e89d5c31c199eab02937eb332faf734ad9fbf1216995dde9887484d