[INFO] fetching crate rust-code-analysis 0.0.25... [INFO] checking rust-code-analysis-0.0.25 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate rust-code-analysis 0.0.25 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate rust-code-analysis 0.0.25 [INFO] finished tweaking crates.io crate rust-code-analysis 0.0.25 [INFO] tweaked toml for crates.io crate rust-code-analysis 0.0.25 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rust-code-analysis 0.0.25 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 94 packages to latest compatible versions [INFO] [stderr] Adding aho-corasick v0.7.20 (available: v1.1.3) [INFO] [stderr] Adding num-derive v0.3.3 (available: v0.4.2) [INFO] [stderr] Adding petgraph v0.6.5 (available: v0.8.2) [INFO] [stderr] Adding tree-sitter v0.20.9 (available: v0.20.10) [INFO] [stderr] Adding tree-sitter-cpp v0.20.1 (available: v0.20.5) [INFO] [stderr] Adding tree-sitter-java v0.20.0 (available: v0.20.2) [INFO] [stderr] Adding tree-sitter-javascript v0.20.0 (available: v0.20.4) [INFO] [stderr] Adding tree-sitter-python v0.20.2 (available: v0.20.4) [INFO] [stderr] Adding tree-sitter-rust v0.20.3 (available: v0.20.4) [INFO] [stderr] Adding tree-sitter-typescript v0.20.1 (available: v0.20.5) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tree-sitter-language v0.1.5 [INFO] [stderr] Downloaded tree-sitter-ccomment v0.20.1 [INFO] [stderr] Downloaded tree-sitter-preproc v0.20.1 [INFO] [stderr] Downloaded tree-sitter-mozjs v0.20.1 [INFO] [stderr] Downloaded tree-sitter-java v0.20.0 [INFO] [stderr] Downloaded tree-sitter-python v0.20.2 [INFO] [stderr] Downloaded tree-sitter v0.25.8 [INFO] [stderr] Downloaded tree-sitter-javascript v0.20.0 [INFO] [stderr] Downloaded tree-sitter-rust v0.20.3 [INFO] [stderr] Downloaded tree-sitter-typescript v0.20.1 [INFO] [stderr] Downloaded tree-sitter-cpp v0.20.1 [INFO] [stderr] Downloaded tree-sitter-mozcpp v0.20.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 938dd2154aa56bc162ef458d2c4df3e4cb9ce8c0de281bbfb37d93f1150dc37b [INFO] running `Command { std: "docker" "start" "-a" "938dd2154aa56bc162ef458d2c4df3e4cb9ce8c0de281bbfb37d93f1150dc37b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "938dd2154aa56bc162ef458d2c4df3e4cb9ce8c0de281bbfb37d93f1150dc37b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "938dd2154aa56bc162ef458d2c4df3e4cb9ce8c0de281bbfb37d93f1150dc37b", kill_on_drop: false }` [INFO] [stdout] 938dd2154aa56bc162ef458d2c4df3e4cb9ce8c0de281bbfb37d93f1150dc37b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25af429a30f98235fe8a0645cad091d190dcfd687f82db4b35d83480a470ef95 [INFO] running `Command { std: "docker" "start" "-a" "25af429a30f98235fe8a0645cad091d190dcfd687f82db4b35d83480a470ef95", kill_on_drop: false }` [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling tree-sitter v0.20.9 [INFO] [stderr] Compiling tree-sitter-javascript v0.20.0 [INFO] [stderr] Compiling tree-sitter-cpp v0.20.1 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling tree-sitter-rust v0.20.3 [INFO] [stderr] Compiling tree-sitter-java v0.20.0 [INFO] [stderr] Compiling tree-sitter-preproc v0.20.1 [INFO] [stderr] Compiling tree-sitter-typescript v0.20.1 [INFO] [stderr] Checking regex v1.11.2 [INFO] [stderr] Compiling tree-sitter-python v0.20.2 [INFO] [stderr] Compiling tree-sitter-ccomment v0.20.1 [INFO] [stderr] Checking streaming-iterator v0.1.9 [INFO] [stderr] Checking tree-sitter-language v0.1.5 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tree-sitter v0.25.8 [INFO] [stderr] Compiling tree-sitter-mozjs v0.20.1 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking crossbeam-queue v0.3.12 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking bstr v1.12.0 [INFO] [stderr] Compiling tree-sitter-mozcpp v0.20.2 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking num-format v0.4.4 [INFO] [stderr] Checking globset v0.4.16 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking similar v2.7.0 [INFO] [stderr] Checking yansi v1.0.1 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking pretty_assertions v1.4.1 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking insta v1.43.1 [INFO] [stderr] Checking rust-code-analysis v0.0.25 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/tools.rs:237:26 [INFO] [stdout] | [INFO] [stdout] 237 | .take_while(|&c| (*c == b'\n' || *c == b'\r')) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 237 - .take_while(|&c| (*c == b'\n' || *c == b'\r')) [INFO] [stdout] 237 + .take_while(|&c| *c == b'\n' || *c == b'\r') [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | $name::language() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `tree_sitter::Language`, found a different `tree_sitter::Language` [INFO] [stdout] ... [INFO] [stdout] 264 | fn get_language() -> Language { [INFO] [stdout] | -------- expected `tree_sitter::Language` because of return type [INFO] [stdout] | [INFO] [stdout] ::: src/langs.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / mk_langs!( [INFO] [stdout] ... | [INFO] [stdout] 117 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: two different versions of crate `tree_sitter` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tree-sitter-0.20.9/binding_rust/lib.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Language(*const ffi::TSLanguage); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ this is the expected type `tree_sitter::Language` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tree-sitter-0.25.8/binding_rust/lib.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Language(*const ffi::TSLanguage); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ this is the found type `tree_sitter::Language` [INFO] [stdout] | [INFO] [stdout] ::: src/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tree_sitter::Node as OtherNode; [INFO] [stdout] | ----------- one version of crate `tree_sitter` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/langs.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | tree_sitter_rust, [INFO] [stdout] | ---------------- one version of crate `tree_sitter` used here, as a dependency of crate `tree_sitter_rust` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: this error originates in the macro `get_language` which comes from the expansion of the macro `mk_langs` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/tools.rs:237:26 [INFO] [stdout] | [INFO] [stdout] 237 | .take_while(|&c| (*c == b'\n' || *c == b'\r')) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 237 - .take_while(|&c| (*c == b'\n' || *c == b'\r')) [INFO] [stdout] 237 + .take_while(|&c| *c == b'\n' || *c == b'\r') [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-code-analysis` (lib) due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | $name::language() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `tree_sitter::Language`, found a different `tree_sitter::Language` [INFO] [stdout] ... [INFO] [stdout] 264 | fn get_language() -> Language { [INFO] [stdout] | -------- expected `tree_sitter::Language` because of return type [INFO] [stdout] | [INFO] [stdout] ::: src/langs.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / mk_langs!( [INFO] [stdout] ... | [INFO] [stdout] 117 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: two different versions of crate `tree_sitter` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tree-sitter-0.20.9/binding_rust/lib.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Language(*const ffi::TSLanguage); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ this is the expected type `tree_sitter::Language` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tree-sitter-0.25.8/binding_rust/lib.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Language(*const ffi::TSLanguage); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ this is the found type `tree_sitter::Language` [INFO] [stdout] | [INFO] [stdout] ::: src/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tree_sitter::Node as OtherNode; [INFO] [stdout] | ----------- one version of crate `tree_sitter` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/langs.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | tree_sitter_rust, [INFO] [stdout] | ---------------- one version of crate `tree_sitter` used here, as a dependency of crate `tree_sitter_rust` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: this error originates in the macro `get_language` which comes from the expansion of the macro `mk_langs` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-code-analysis` (lib test) due to 1 previous error; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "25af429a30f98235fe8a0645cad091d190dcfd687f82db4b35d83480a470ef95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25af429a30f98235fe8a0645cad091d190dcfd687f82db4b35d83480a470ef95", kill_on_drop: false }` [INFO] [stdout] 25af429a30f98235fe8a0645cad091d190dcfd687f82db4b35d83480a470ef95