[INFO] fetching crate ast-grep 0.39.4... [INFO] testing ast-grep-0.39.4 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate ast-grep 0.39.4 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate ast-grep 0.39.4 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate ast-grep 0.39.4 [INFO] tweaked toml for crates.io crate ast-grep 0.39.4 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ast-grep 0.39.4 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate ast-grep 0.39.4 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c283612755493580df046c7dd5a0f3c8ce59fab45cbc5cd788b28eec6f64d24b [INFO] running `Command { std: "docker" "start" "-a" "c283612755493580df046c7dd5a0f3c8ce59fab45cbc5cd788b28eec6f64d24b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c283612755493580df046c7dd5a0f3c8ce59fab45cbc5cd788b28eec6f64d24b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c283612755493580df046c7dd5a0f3c8ce59fab45cbc5cd788b28eec6f64d24b", kill_on_drop: false }` [INFO] [stdout] c283612755493580df046c7dd5a0f3c8ce59fab45cbc5cd788b28eec6f64d24b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81520ba53e37ad11436c4f42d47116ee1ebe5d265378c7b6811dc6163b0a1ec4 [INFO] running `Command { std: "docker" "start" "-a" "81520ba53e37ad11436c4f42d47116ee1ebe5d265378c7b6811dc6163b0a1ec4", kill_on_drop: false }` [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling tree-sitter-language v0.1.5 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling cc v1.2.19 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling convert_case v0.7.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling rustix v1.0.5 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling litrs v0.4.1 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling document-features v0.2.11 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling streaming-iterator v0.1.9 [INFO] [stderr] Compiling bit-set v0.8.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling tree-sitter v0.25.8 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling dyn-clone v1.0.19 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling crossterm v0.29.0 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling schemars_derive v1.0.4 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling ast-grep-core v0.39.4 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling fluent-uri v0.1.4 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling tree-sitter-nix v0.3.0 [INFO] [stderr] Compiling tree-sitter-java v0.23.5 [INFO] [stderr] Compiling tree-sitter-cpp v0.23.4 [INFO] [stderr] Compiling tree-sitter-ruby v0.23.1 [INFO] [stderr] Compiling tree-sitter-json v0.23.0 [INFO] [stderr] Compiling tree-sitter-c v0.24.1 [INFO] [stderr] Compiling tree-sitter-c-sharp v0.23.1 [INFO] [stderr] Compiling tree-sitter-kotlin-sg v0.4.0 [INFO] [stderr] Compiling tree-sitter-solidity v1.2.13 [INFO] [stderr] Compiling tree-sitter-css v0.23.2 [INFO] [stderr] Compiling tree-sitter-hcl v1.1.0 [INFO] [stderr] Compiling tree-sitter-haskell v0.23.1 [INFO] [stderr] Compiling tree-sitter-scala v0.24.0 [INFO] [stderr] Compiling tree-sitter-python v0.23.6 [INFO] [stderr] Compiling tree-sitter-go v0.23.4 [INFO] [stderr] Compiling tree-sitter-elixir v0.3.4 [INFO] [stderr] Compiling tree-sitter-lua v0.2.0 [INFO] [stderr] Compiling tree-sitter-javascript v0.23.1 [INFO] [stderr] Compiling tree-sitter-yaml v0.7.1 [INFO] [stderr] Compiling tree-sitter-swift v0.7.1 [INFO] [stderr] Compiling tree-sitter-bash v0.25.0 [INFO] [stderr] Compiling tree-sitter-html v0.23.2 [INFO] [stderr] Compiling tree-sitter-typescript v0.23.2 [INFO] [stderr] Compiling tree-sitter-rust v0.24.0 [INFO] [stderr] Compiling tree-sitter-php v0.23.11 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling strict v0.2.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling target-triple v0.1.4 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling clap_builder v4.5.44 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling crokey-proc_macros v1.2.0 [INFO] [stderr] Compiling lazy-regex-proc_macros v3.4.1 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling schemars v1.0.4 [INFO] [stderr] Compiling lsp-types v0.97.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling coolor v1.1.0 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling crossbeam v0.8.4 [INFO] [stderr] Compiling fuzzy-matcher v0.3.7 [INFO] [stderr] Compiling xterm-query v0.5.2 [INFO] [stderr] Compiling ast-grep-config v0.39.4 [INFO] [stderr] Compiling crokey v1.2.0 [INFO] [stderr] Compiling lazy-regex v3.4.1 [INFO] [stderr] Compiling clap v4.5.44 [INFO] [stderr] Compiling crossterm v0.25.0 [INFO] [stderr] Compiling newline-converter v0.3.0 [INFO] [stderr] Compiling minimad v0.13.1 [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling unicode-width v0.2.0 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling ast-grep-dynamic v0.39.4 [INFO] [stderr] Compiling termimad v0.33.0 [INFO] [stderr] Compiling inquire v0.7.5 [INFO] [stderr] Compiling codespan-reporting v0.12.0 [INFO] [stderr] Compiling clap_complete v4.5.56 [INFO] [stderr] Compiling terminal-light v1.8.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling ast-grep-language v0.39.4 [INFO] [stderr] Compiling tower-lsp-server v0.21.1 [INFO] [stderr] Compiling ast-grep-lsp v0.39.4 [INFO] [stderr] Compiling ast-grep v0.39.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/print/colored_print/styles.rs:105:28 [INFO] [stdout] | [INFO] [stdout] 105 | fn adjust_dir_separator(p: &Path) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 105 | fn adjust_dir_separator(p: &Path) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/verify/test_case.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify_rule(&self, rule_config: &RuleConfig) -> CaseResult { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify_rule(&self, rule_config: &RuleConfig) -> CaseResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/verify/test_case.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 34 | ) -> CaseResult { [INFO] [stdout] | ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | ) -> CaseResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 29s [INFO] running `Command { std: "docker" "inspect" "81520ba53e37ad11436c4f42d47116ee1ebe5d265378c7b6811dc6163b0a1ec4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81520ba53e37ad11436c4f42d47116ee1ebe5d265378c7b6811dc6163b0a1ec4", kill_on_drop: false }` [INFO] [stdout] 81520ba53e37ad11436c4f42d47116ee1ebe5d265378c7b6811dc6163b0a1ec4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 434dd6e9f7283c72ad740340efec84985dc12a27af3a3f9f26d7ae09480538f9 [INFO] running `Command { std: "docker" "start" "-a" "434dd6e9f7283c72ad740340efec84985dc12a27af3a3f9f26d7ae09480538f9", kill_on_drop: false }` [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling rustix v1.0.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling assert_cmd v2.0.17 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [INFO] [stderr] Compiling termtree v0.5.1 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling predicates-tree v1.0.12 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling crossterm v0.29.0 [INFO] [stderr] Compiling float-cmp v0.10.0 [INFO] [stderr] Compiling crokey-proc_macros v1.2.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling tree-sitter v0.25.8 [INFO] [stderr] Compiling lazy-regex v3.4.1 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling coolor v1.1.0 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling ast-grep-core v0.39.4 [INFO] [stderr] Compiling crokey v1.2.0 [INFO] [stderr] Compiling termimad v0.33.0 [INFO] [stderr] Compiling terminal-light v1.8.0 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling ast-grep-config v0.39.4 [INFO] [stderr] Compiling ast-grep-dynamic v0.39.4 [INFO] [stderr] Compiling ast-grep-language v0.39.4 [INFO] [stderr] Compiling ast-grep-lsp v0.39.4 [INFO] [stderr] Compiling ast-grep v0.39.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/print/colored_print/styles.rs:105:28 [INFO] [stdout] | [INFO] [stdout] 105 | fn adjust_dir_separator(p: &Path) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 105 | fn adjust_dir_separator(p: &Path) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/verify/test_case.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify_rule(&self, rule_config: &RuleConfig) -> CaseResult { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify_rule(&self, rule_config: &RuleConfig) -> CaseResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/verify/test_case.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 34 | ) -> CaseResult { [INFO] [stdout] | ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | ) -> CaseResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/print/colored_print/styles.rs:105:28 [INFO] [stdout] | [INFO] [stdout] 105 | fn adjust_dir_separator(p: &Path) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 105 | fn adjust_dir_separator(p: &Path) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/verify/test_case.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify_rule(&self, rule_config: &RuleConfig) -> CaseResult { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify_rule(&self, rule_config: &RuleConfig) -> CaseResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/verify/test_case.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 34 | ) -> CaseResult { [INFO] [stdout] | ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | ) -> CaseResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1m 36s [INFO] running `Command { std: "docker" "inspect" "434dd6e9f7283c72ad740340efec84985dc12a27af3a3f9f26d7ae09480538f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "434dd6e9f7283c72ad740340efec84985dc12a27af3a3f9f26d7ae09480538f9", kill_on_drop: false }` [INFO] [stdout] 434dd6e9f7283c72ad740340efec84985dc12a27af3a3f9f26d7ae09480538f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d9c72f8d34fc56d6a0692e23184603026f8b6b84356dfb217e550489e40a31a1 [INFO] running `Command { std: "docker" "start" "-a" "d9c72f8d34fc56d6a0692e23184603026f8b6b84356dfb217e550489e40a31a1", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/print/colored_print/styles.rs:105:28 [INFO] [stderr] | [INFO] [stderr] 105 | fn adjust_dir_separator(p: &Path) -> Cow { [INFO] [stderr] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 105 | fn adjust_dir_separator(p: &Path) -> Cow<'_, str> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/verify/test_case.rs:25:22 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn verify_rule(&self, rule_config: &RuleConfig) -> CaseResult { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 25 | pub fn verify_rule(&self, rule_config: &RuleConfig) -> CaseResult<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/verify/test_case.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | &self, [INFO] [stderr] | ^^^^^ the lifetime is elided here [INFO] [stderr] ... [INFO] [stderr] 34 | ) -> CaseResult { [INFO] [stderr] | ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 34 | ) -> CaseResult<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `ast-grep` (lib) generated 3 warnings (run `cargo fix --lib -p ast-grep` to apply 3 suggestions) [INFO] [stderr] warning: `ast-grep` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ast_grep-553e3edef6814218) [INFO] [stdout] [INFO] [stdout] running 98 tests [INFO] [stdout] test lang::injection::test::test_good_injection ... ok [INFO] [stdout] test lang::injection::test::test_deserialize ... ok [INFO] [stdout] test lang::lang_globs::test::test_parse_globs ... ok [INFO] [stdout] test lang::injection::test::test_bad_inject ... ok [INFO] [stdout] test lsp::test::test_lsp_start ... ignored, test lsp later [INFO] [stdout] test lang::lang_globs::test::test_merge_types ... ok [INFO] [stdout] test print::cloud_print::test::test_error_output ... ok [INFO] [stdout] test new::test::test_create_new ... ok [INFO] [stdout] test new::test::test_create_util ... ok [INFO] [stdout] test lang::test::test_sg_lang_size ... ok [INFO] [stdout] test lang::lang_globs::test::test_register ... ok [INFO] [stdout] test print::cloud_print::test::test_hint_output ... ok [INFO] [stdout] test print::cloud_print::test::test_no_match_output ... ok [INFO] [stdout] test print::cloud_print::test::test_info_output ... ok [INFO] [stdout] test lang::lang_globs::test::test_invalid_language ... ok [INFO] [stdout] test completions::test::test_generate_command ... ok [INFO] [stdout] test print::colored_print::test::test_empty_printer ... ok [INFO] [stdout] test print::cloud_print::test::test_warning_output ... ok [INFO] [stdout] test print::colored_print::test::test_non_overlap_print ... ok [INFO] [stdout] test print::colored_print::test::test_print_diffs ... ok [INFO] [stdout] test print::colored_print::test::test_print_rule_diffs_short ... ok [INFO] [stdout] test print::interactive_print::test::test_apply_rewrite ... ok [INFO] [stdout] Cargo.toml +2 [INFO] [stdout] test print::colored_print::test::test_print_rules ... ok [INFO] [stdout] test print::colored_print::test::test_overlap_print ... ok [INFO] [stdout] test print::interactive_print::test::test_open_editor ... ok [INFO] [stdout] test print::interactive_print::test::test_rewrite_nested ... ok [INFO] [stdout] test print::colored_print::test::test_print_matches ... ok [INFO] [stdout] test lang::lang_globs::test::test_merge_with_globs ... ok [INFO] [stdout] test print::json_print::test::test_empty_printer ... ok [INFO] [stdout] test print::json_print::test::test_multi_matched_json ... ok [INFO] [stdout] test print::json_print::test::test_metadata ... ok [INFO] [stdout] test print::json_print::test::test_label ... ok [INFO] [stdout] test print::json_print::test::test_rule_json ... ok [INFO] [stdout] test print::json_print::test::test_single_matched_json ... ok [INFO] [stdout] test print::colored_print::test::test_print_rule_diffs ... ok [INFO] [stdout] test print::json_print::test::test_invariant ... ok [INFO] [stdout] test print::interactive_print::test::test_rewrite_with_empty_lines ... ok [INFO] [stdout] test print::json_print::test::test_replace_json ... ok [INFO] [stdout] test print::json_print::test::test_streaming ... ok [INFO] [stdout] test print::json_print::test::test_transform ... ok [INFO] [stdout] test print::colored_print::test::test_print_matches_without_heading ... ok [INFO] [stdout] test print::colored_print::test::test_before_after ... ok [INFO] [stdout] test scan::test::test_scan_with_inline_rules_error ... ok [INFO] [stdout] test test_cli::test_default_subcommand ... ok [INFO] [stdout] test test_cli::test_new ... ok [INFO] [stdout] test test_cli::test_no_arg_run ... ok [INFO] [stdout] test scan::test::test_scan_with_inline_rules_diff ... ok [INFO] [stdout] test test_cli::test_shell ... ok [INFO] [stdout] test test_cli::test_test ... ok [INFO] [stdout] test test_cli::test_version_and_help ... ok [INFO] [stdout] test test_cli::test_wrong_usage ... ok [INFO] [stdout] test utils::args::test::test_build_globs ... ok [INFO] [stdout] test utils::debug_query::test::test_dump_node ... ok [INFO] [stdout] test utils::debug_query::test::test_missing_node ... ok [INFO] [stdout] test utils::error_context::test::test_bare_anyhow ... ok [INFO] [stdout] test utils::error_context::test::test_display_error ... ok [INFO] [stdout] test utils::error_context::test::test_display_warning ... ok [INFO] [stdout] test utils::inspect::test::test_tracing ... ok [INFO] [stdout] test utils::inspect::test::test_tracing_nothing ... ok [INFO] [stdout] test utils::test::test_html_embedding ... ok [INFO] [stdout] test utils::test::test_html_embedding_lang_not_found ... ok [INFO] [stdout] test verify::case_result::test::test_is_snapshot_mismatch_only_failure ... ok [INFO] [stdout] test verify::case_result::test::test_snapshot ... ok [INFO] [stdout] test verify::find_file::test::test_read_multi ... ok [INFO] [stdout] test verify::find_file::test::test_read_snapshot ... ok [INFO] [stdout] test verify::find_file::test::test_read_test ... ok [INFO] [stdout] test verify::reporter::test::test_after_report_mixed_failures ... ok [INFO] [stdout] test verify::reporter::test::test_after_report_snapshot_mismatch_only ... ok [INFO] [stdout] test verify::reporter::test::test_after_report_success ... ok [INFO] [stdout] test verify::reporter::test::test_invalid_case_detail ... ok [INFO] [stdout] test verify::reporter::test::test_many_cases ... ok [INFO] [stdout] test verify::reporter::test::test_report_summary ... ok [INFO] [stdout] test verify::reporter::test::test_valid_case_detail ... ok [INFO] [stdout] test verify::snapshot::tests::test_generate ... ok [INFO] [stdout] test verify::snapshot::tests::test_not_found ... ok [INFO] [stdout] test verify::snapshot::tests::test_secondary_label ... ok [INFO] [stdout] test verify::snapshot::tests::test_snapshot_action ... ok [INFO] [stdout] test verify::test::test_missing ... ok [INFO] [stdout] test verify::test::test_no_such_rule ... ok [INFO] [stdout] test verify::test::test_noisy ... ok [INFO] [stdout] test verify::test::test_reported ... ok [INFO] [stdout] test verify::test::test_run_verify_error ... ok [INFO] [stdout] test verify::test::test_validated ... ok [INFO] [stdout] test verify::test::test_verify_transform ... ok [INFO] [stdout] test verify::test_case::tests::test_invalid ... ok [INFO] [stdout] test scan::test::test_scan_with_inline_rules ... ok [INFO] [stdout] test verify::test_case::tests::test_verify_rule ... ok [INFO] [stdout] test verify::test_case::tests::test_verify_snapshot_with_existing ... ok [INFO] [stdout] test verify::test_case::tests::test_verify_snapshot_with_mismatch ... ok [INFO] [stdout] test verify::test_case::tests::test_verify_snapshot_without_existing ... ok [INFO] [stdout] test run::test::test_run_with_pattern ... ok [INFO] [stdout] test run::test::test_run_with_strictness ... ok [INFO] [stdout] test verify::test_case::tests::test_verify_snapshot_without_existing_2 ... ok [INFO] [stdout] test run::test::test_run_with_specific_lang ... ok [INFO] [stdout] test scan::test::test_run_with_config ... ok [INFO] [stdout] test verify::test_case::tests::test_unmatching_id - should panic ... ok [INFO] [stdout] test test_cli::test_run ... ok [INFO] [stdout] test test_cli::test_scan ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 97 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.85s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ast_grep-92ae33b9475952d2) [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 unittests src/bin/alias.rs (/opt/rustwide/target/debug/deps/sg-c6a33368f0f572e2) [INFO] [stderr] Running tests/help_test.rs (/opt/rustwide/target/debug/deps/help_test-f9096a34ffec1d8a) [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] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_help_work_for_invalid_sgconfig ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.28s [INFO] [stdout] [INFO] [stderr] Running tests/run_test.rs (/opt/rustwide/target/debug/deps/run_test-39b465657f65ef78) [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test test_trace_default_project ... ok [INFO] [stdout] test test_rewrite_js_in_html ... ok [INFO] [stdout] test test_simple_specific_lang ... ok [INFO] [stdout] test test_simple_infer_lang ... ok [INFO] [stdout] test test_debug_query ... ok [INFO] [stdout] test test_unsupport_config_arg ... ok [INFO] [stdout] test test_inspect ... ok [INFO] [stdout] test test_trace_project ... ok [INFO] [stderr] Running tests/scan_test.rs (/opt/rustwide/target/debug/deps/scan_test-c25d27e8ef1a205a) [INFO] [stdout] test test_js_in_html ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test test_scan_unused_suppression_off ... ok [INFO] [stdout] test test_label ... ok [INFO] [stdout] test test_sg_rule_off ... ok [INFO] [stdout] test test_sg_scan_inline_rules ... ok [INFO] [stdout] test test_sg_scan_html ... ok [INFO] [stdout] test test_sg_scan_multiple_rules_in_one_file ... ok [INFO] [stdout] test test_sg_scan_py_empty_text ... ok [INFO] [stdout] test test_transform_indent ... ok [INFO] [stdout] test test_unused_suppression_only_in_scan ... ok [INFO] [stdout] test test_severity_override ... ok [INFO] [stdout] test test_sg_scan ... ok [INFO] [stdout] test test_scan_unused_suppression ... ok [INFO] [stderr] Running tests/verify_test.rs (/opt/rustwide/target/debug/deps/verify_test-105ed47f5d23b5d4) [INFO] [stdout] test test_file ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] Running 1 tests [INFO] [stdout] Configuration not found! test-rule [INFO] [stdout] [INFO] [stdout] ----------- Case Details ----------- [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; [INFO] [stdout] Running 1 tests [INFO] [stdout] [INFO] [stdout] ----------- Case Details ----------- [INFO] [stdout] [Noisy] Expect test-rule to report no issue, but some issues found in: [INFO] [stdout] [INFO] [stdout] Some(123) [INFO] [stdout] [INFO] [stdout] [Missing] Expect rule test-rule to report issues, but none found in: [INFO] [stdout] [INFO] [stdout] None [INFO] [stdout] [INFO] [stdout] FAIL test-rule NM [INFO] [stdout] [INFO] [stdout] test test_sg_test_off_rule ... ok [INFO] [stdout] Running 1 tests [INFO] [stdout] [INFO] [stdout] ----------- Case Details ----------- [INFO] [stdout] PASS test-rule .. [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; [INFO] [stdout] test test_sg_test ... ok [INFO] [stdout] Running 1 tests [INFO] [stdout] [INFO] [stdout] ----------- Case Details ----------- [INFO] [stdout] [Noisy] Expect test-rule to report no issue, but some issues found in: [INFO] [stdout] [INFO] [stdout] Some(123) [INFO] [stdout] [INFO] [stdout] [Missing] Expect rule test-rule to report issues, but none found in: [INFO] [stdout] [INFO] [stdout] None [INFO] [stdout] [INFO] [stdout] FAIL test-rule NM [INFO] [stdout] [INFO] [stdout] test test_sg_test_error ... ok [INFO] [stdout] Running 1 tests [INFO] [stdout] [INFO] [stdout] ----------- Case Details ----------- [INFO] [stdout] [Noisy] Expect test-rule to report no issue, but some issues found in: [INFO] [stdout] [INFO] [stdout] Some(123) [INFO] [stdout] [INFO] [stdout] [Missing] Expect rule test-rule to report issues, but none found in: [INFO] [stdout] [INFO] [stdout] None [INFO] [stdout] [INFO] [stdout] FAIL test-rule NM [INFO] [stdout] [INFO] [stdout] test test_sg_test_filter ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.18s [INFO] [stdout] [INFO] [stderr] Doc-tests ast_grep [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] running `Command { std: "docker" "inspect" "d9c72f8d34fc56d6a0692e23184603026f8b6b84356dfb217e550489e40a31a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9c72f8d34fc56d6a0692e23184603026f8b6b84356dfb217e550489e40a31a1", kill_on_drop: false }` [INFO] [stdout] d9c72f8d34fc56d6a0692e23184603026f8b6b84356dfb217e550489e40a31a1