[INFO] fetching crate rust-code-analysis 0.0.25... [INFO] checking rust-code-analysis-0.0.25 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate rust-code-analysis 0.0.25 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate rust-code-analysis 0.0.25 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1e2fbb280ec462b82d4b5045a0ad19465361dd75008b085ad2f8753777459e51 [INFO] running `Command { std: "docker" "start" "-a" "1e2fbb280ec462b82d4b5045a0ad19465361dd75008b085ad2f8753777459e51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1e2fbb280ec462b82d4b5045a0ad19465361dd75008b085ad2f8753777459e51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e2fbb280ec462b82d4b5045a0ad19465361dd75008b085ad2f8753777459e51", kill_on_drop: false }` [INFO] [stdout] 1e2fbb280ec462b82d4b5045a0ad19465361dd75008b085ad2f8753777459e51 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6cde66750c7cb5d3c71f4de0386c3daad13ff4a11466421c09bcd3019281609c [INFO] running `Command { std: "docker" "start" "-a" "6cde66750c7cb5d3c71f4de0386c3daad13ff4a11466421c09bcd3019281609c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling memchr v2.6.3 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Checking hashbrown v0.14.0 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [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] Compiling tree-sitter-rust v0.20.3 [INFO] [stderr] Compiling tree-sitter-python v0.20.2 [INFO] [stderr] Compiling tree-sitter-ccomment v0.20.1 [INFO] [stderr] Compiling tree-sitter-preproc v0.20.1 [INFO] [stderr] Compiling tree-sitter-typescript v0.20.1 [INFO] [stderr] Compiling tree-sitter-java v0.20.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Compiling aho-corasick v1.1.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.15 [INFO] [stderr] Checking indexmap v2.0.0 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking bstr v1.6.2 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking petgraph v0.6.4 [INFO] [stderr] Checking crossbeam v0.8.2 [INFO] [stderr] Checking num-format v0.4.4 [INFO] [stderr] Checking walkdir v2.4.0 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking globset v0.4.13 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking similar v2.2.1 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Compiling regex-automata v0.3.8 [INFO] [stderr] Checking insta v1.31.0 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling regex v1.9.5 [INFO] [stderr] Compiling tree-sitter-mozjs v0.20.1 [INFO] [stderr] Compiling tree-sitter-mozcpp v0.20.2 [INFO] [stderr] Checking rust-code-analysis v0.0.25 (/opt/rustwide/workdir) [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `node` [INFO] [stdout] --> src/metrics/npa.rs:260:38 [INFO] [stdout] | [INFO] [stdout] 260 | .flat_map(|node| node.children()) [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `node` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-code-analysis` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `node` [INFO] [stdout] --> src/metrics/npa.rs:260:38 [INFO] [stdout] | [INFO] [stdout] 260 | .flat_map(|node| node.children()) [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `node` is borrowed here [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-code-analysis` (lib test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "6cde66750c7cb5d3c71f4de0386c3daad13ff4a11466421c09bcd3019281609c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cde66750c7cb5d3c71f4de0386c3daad13ff4a11466421c09bcd3019281609c", kill_on_drop: false }` [INFO] [stdout] 6cde66750c7cb5d3c71f4de0386c3daad13ff4a11466421c09bcd3019281609c