[INFO] fetching crate ast-grep 0.1.18... [INFO] testing ast-grep-0.1.18 against master#159ba8a92c9e2fa4121f106176309521f4af87e9+rustflags=-Copt-level=3 for pr-107051 [INFO] extracting crate ast-grep 0.1.18 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate ast-grep 0.1.18 on toolchain 159ba8a92c9e2fa4121f106176309521f4af87e9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ast-grep 0.1.18 [INFO] finished tweaking crates.io crate ast-grep 0.1.18 [INFO] tweaked toml for crates.io crate ast-grep 0.1.18 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate crates.io crate ast-grep 0.1.18 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" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded globset v0.4.10 [INFO] [stderr] Downloaded signal-hook-mio v0.2.3 [INFO] [stderr] Downloaded ignore v0.4.20 [INFO] [stderr] Downloaded crossterm_winapi v0.9.0 [INFO] [stderr] Downloaded bstr v1.1.0 [INFO] [stderr] Downloaded rustix v0.36.6 [INFO] [stderr] Downloaded tower-lsp v0.18.0 [INFO] [stderr] Downloaded tree-sitter v0.20.9 [INFO] [stderr] Downloaded tree-sitter-lua v0.0.14 [INFO] [stderr] Downloaded tree-sitter-python v0.20.2 [INFO] [stderr] Downloaded tree-sitter-html v0.19.0 [INFO] [stderr] Downloaded tree-sitter-java v0.20.0 [INFO] [stderr] Downloaded bit-set v0.5.3 [INFO] [stderr] Downloaded tree-sitter-c v0.20.2 [INFO] [stderr] Downloaded tower-lsp-macros v0.7.0 [INFO] [stderr] Downloaded tree-sitter-facade-sg v0.9.1 [INFO] [stderr] Downloaded tree-sitter-javascript v0.20.0 [INFO] [stderr] Downloaded auto_impl v1.0.1 [INFO] [stderr] Downloaded async-trait v0.1.61 [INFO] [stderr] Downloaded serde_yaml v0.9.16 [INFO] [stderr] Downloaded crossterm v0.25.0 [INFO] [stderr] Downloaded tree-sitter-go v0.19.1 [INFO] [stderr] Downloaded tree-sitter-rust v0.20.3 [INFO] [stderr] Downloaded tree-sitter-kotlin v0.2.11 [INFO] [stderr] Downloaded ast-grep-config v0.1.18 [INFO] [stderr] Downloaded ast-grep-language v0.1.18 [INFO] [stderr] Downloaded ast-grep-core v0.1.18 [INFO] [stderr] Downloaded unsafe-libyaml v0.2.5 [INFO] [stderr] Downloaded similar v2.2.1 [INFO] [stderr] Downloaded lsp-types v0.93.2 [INFO] [stderr] Downloaded clap_derive v4.1.0 [INFO] [stderr] Downloaded tree-sitter-typescript v0.20.1 [INFO] [stderr] Downloaded ast-grep-lsp v0.1.18 [INFO] [stderr] Downloaded tree-sitter-swift v0.3.4 [INFO] [stderr] Downloaded ast-grep-tree-sitter-c-sharp v0.20.0 [INFO] [stderr] Downloaded web-tree-sitter-sg v1.3.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e920c38584248f2b7f4d9ee67823ef49f7b5a9aa8d8f6231ab4e0a76570b8d24 [INFO] running `Command { std: "docker" "start" "-a" "e920c38584248f2b7f4d9ee67823ef49f7b5a9aa8d8f6231ab4e0a76570b8d24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e920c38584248f2b7f4d9ee67823ef49f7b5a9aa8d8f6231ab4e0a76570b8d24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e920c38584248f2b7f4d9ee67823ef49f7b5a9aa8d8f6231ab4e0a76570b8d24", kill_on_drop: false }` [INFO] [stdout] e920c38584248f2b7f4d9ee67823ef49f7b5a9aa8d8f6231ab4e0a76570b8d24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] abec601a0465c5cec5458a2f514339fc91e3100fbbe8eee9b768d5d8b99d7ada [INFO] running `Command { std: "docker" "start" "-a" "abec601a0465c5cec5458a2f514339fc91e3100fbbe8eee9b768d5d8b99d7ada", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling tree-sitter v0.20.9 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.83 [INFO] [stderr] Compiling bumpalo v3.11.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling wasm-bindgen v0.2.83 [INFO] [stderr] Compiling futures-task v0.3.25 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling futures-util v0.3.25 [INFO] [stderr] Compiling bstr v1.1.0 [INFO] [stderr] Compiling tokio v1.24.1 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling io-lifetimes v1.0.4 [INFO] [stderr] Compiling futures-io v0.3.25 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling async-trait v0.1.61 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling rustix v0.36.6 [INFO] [stderr] Compiling signal-hook v0.3.14 [INFO] [stderr] Compiling tree-sitter-rust v0.20.3 [INFO] [stderr] Compiling tree-sitter-typescript v0.20.1 [INFO] [stderr] Compiling tree-sitter-javascript v0.20.0 [INFO] [stderr] Compiling tree-sitter-c v0.20.2 [INFO] [stderr] Compiling tree-sitter-go v0.19.1 [INFO] [stderr] Compiling tree-sitter-kotlin v0.2.11 [INFO] [stderr] Compiling tree-sitter-java v0.20.0 [INFO] [stderr] Compiling ast-grep-tree-sitter-c-sharp v0.20.0 [INFO] [stderr] Compiling tree-sitter-swift v0.3.4 [INFO] [stderr] Compiling tree-sitter-html v0.19.0 [INFO] [stderr] Compiling tree-sitter-python v0.20.2 [INFO] [stderr] Compiling tree-sitter-lua v0.0.14 [INFO] [stderr] Compiling globset v0.4.10 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling unsafe-libyaml v0.2.5 [INFO] [stderr] Compiling linux-raw-sys v0.1.4 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling parking_lot_core v0.9.6 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling dashmap v5.4.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.83 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.83 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling os_str_bytes v6.4.1 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling clap_lex v0.3.1 [INFO] [stderr] Compiling ignore v0.4.20 [INFO] [stderr] Compiling signal-hook-mio v0.2.3 [INFO] [stderr] Compiling is-terminal v0.4.2 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling similar v2.2.1 [INFO] [stderr] Compiling crossterm v0.25.0 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.83 [INFO] [stderr] Compiling futures-macro v0.3.25 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling tracing-attributes v0.1.23 [INFO] [stderr] Compiling serde_repr v0.1.10 [INFO] [stderr] Compiling auto_impl v1.0.1 [INFO] [stderr] Compiling tower-lsp-macros v0.7.0 [INFO] [stderr] Compiling clap_derive v4.1.0 [INFO] [stderr] Compiling tree-sitter-facade-sg v0.9.1 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling ast-grep-core v0.1.18 [INFO] [stderr] Compiling futures v0.3.25 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling clap v4.1.1 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling serde_yaml v0.9.16 [INFO] [stderr] Compiling ast-grep-language v0.1.18 [INFO] [stderr] Compiling lsp-types v0.93.2 [INFO] [stderr] Compiling ast-grep-config v0.1.18 [INFO] [stderr] Compiling tower-lsp v0.18.0 [INFO] [stderr] Compiling ast-grep-lsp v0.1.18 [INFO] [stderr] Compiling ast-grep v0.1.18 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5m 36s [INFO] running `Command { std: "docker" "inspect" "abec601a0465c5cec5458a2f514339fc91e3100fbbe8eee9b768d5d8b99d7ada", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "abec601a0465c5cec5458a2f514339fc91e3100fbbe8eee9b768d5d8b99d7ada", kill_on_drop: false }` [INFO] [stdout] abec601a0465c5cec5458a2f514339fc91e3100fbbe8eee9b768d5d8b99d7ada [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 50dcaed69f568d5d295f8ce1d6645f251088b3728e9079f9c461ed1ac99c32e3 [INFO] running `Command { std: "docker" "start" "-a" "50dcaed69f568d5d295f8ce1d6645f251088b3728e9079f9c461ed1ac99c32e3", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling ast-grep v0.1.18 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 18.81s [INFO] running `Command { std: "docker" "inspect" "50dcaed69f568d5d295f8ce1d6645f251088b3728e9079f9c461ed1ac99c32e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50dcaed69f568d5d295f8ce1d6645f251088b3728e9079f9c461ed1ac99c32e3", kill_on_drop: false }` [INFO] [stdout] 50dcaed69f568d5d295f8ce1d6645f251088b3728e9079f9c461ed1ac99c32e3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Copt-level=3" "-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:7c93e6f9a94679f34221d1005849d4c83862f85b14a264fa0883942f4d043a66" "/opt/rustwide/cargo-home/bin/cargo" "+159ba8a92c9e2fa4121f106176309521f4af87e9" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 26da47b0b212143b1674e42d2edd79431646def27c0e34f2eab761cd0e92925e [INFO] running `Command { std: "docker" "start" "-a" "26da47b0b212143b1674e42d2edd79431646def27c0e34f2eab761cd0e92925e", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/sg-1c3d7d983259ba4d) [INFO] [stdout] [INFO] [stdout] running 22 tests [INFO] [stdout] test error::test::test_bare_anyhow ... ok [INFO] [stdout] test error::test::test_display_error ... ok [INFO] [stdout] test print::colored_print::test::test_printe_diffs ... ignored [INFO] [stdout] test print::json_print::test::test_invariant ... ignored [INFO] [stdout] test print::interactive_print::test::test_rewrite_nested ... ok [INFO] [stdout] test test_cli::test_run ... ok [INFO] [stdout] test test_cli::test_default_subcommand ... ok [INFO] [stdout] test print::interactive_print::test::test_apply_rewrite ... ok [INFO] [stdout] test print::colored_print::test::test_printe_rules ... ok [INFO] [stdout] test print::colored_print::test::test_emtpy_printer ... ok [INFO] [stdout] test verify::test::test_missing ... ok [INFO] [stdout] test test_cli::test_scan ... ok [INFO] [stdout] test verify::test::test_no_such_rule ... ok [INFO] [stdout] test verify::test::test_snapshot ... ok [INFO] [stdout] test verify::test::test_validated ... ok [INFO] [stdout] test verify::test::test_noisy ... ok [INFO] [stdout] test verify::test::test_reported ... ok [INFO] [stdout] test print::colored_print::test::test_print_matches_without_heading ... ok [INFO] [stdout] test test_cli::test_version_and_help ... ok [INFO] [stdout] test test_cli::test_wrong_usage ... ok [INFO] [stdout] test print::colored_print::test::test_print_matches ... ok [INFO] [stdout] Cargo.toml +1 [INFO] [stdout] test interaction::test::test_open_editor ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 20 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "26da47b0b212143b1674e42d2edd79431646def27c0e34f2eab761cd0e92925e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26da47b0b212143b1674e42d2edd79431646def27c0e34f2eab761cd0e92925e", kill_on_drop: false }` [INFO] [stdout] 26da47b0b212143b1674e42d2edd79431646def27c0e34f2eab761cd0e92925e