[INFO] cloning repository https://github.com/Darktrop/hdfs-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Darktrop/hdfs-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarktrop%2Fhdfs-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarktrop%2Fhdfs-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c14058ec9e4efd62efe2bf5c85502f6419621342 [INFO] checking Darktrop/hdfs-cli/c14058ec9e4efd62efe2bf5c85502f6419621342 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarktrop%2Fhdfs-cli" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Darktrop/hdfs-cli on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Darktrop/hdfs-cli [INFO] finished tweaking git repo https://github.com/Darktrop/hdfs-cli [INFO] tweaked toml for git repo https://github.com/Darktrop/hdfs-cli written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 86 packages to latest compatible versions [INFO] [stderr] Adding arrayvec v0.5.2 (available: v0.7.6) [INFO] [stderr] Adding base64 v0.13.1 (available: v0.22.1) [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding blake2b_simd v0.5.11 (available: v1.0.2) [INFO] [stderr] Adding cfg-if v0.1.10 (available: v1.0.0) [INFO] [stderr] Adding clap v2.34.0 (available: v4.5.18) [INFO] [stderr] Adding cloudabi v0.0.3 (available: v0.1.0) [INFO] [stderr] Adding constant_time_eq v0.1.5 (available: v0.3.1) [INFO] [stderr] Adding dirs v1.0.5 (available: v5.0.1) [INFO] [stderr] Adding env_logger v0.5.13 (available: v0.11.5) [INFO] [stderr] Adding getrandom v0.1.16 (available: v0.2.15) [INFO] [stderr] Adding glob v0.2.11 (available: v0.3.1) [INFO] [stderr] Adding hermit-abi v0.1.19 (available: v0.4.0) [INFO] [stderr] Adding humantime v1.3.0 (available: v2.1.0) [INFO] [stderr] Adding itertools v0.7.11 (available: v0.13.0) [INFO] [stderr] Adding nix v0.11.1 (available: v0.29.0) [INFO] [stderr] Adding quick-error v1.2.3 (available: v2.0.1) [INFO] [stderr] Adding quick-xml v0.13.3 (available: v0.36.2) [INFO] [stderr] Adding rand v0.5.6 (available: v0.8.5) [INFO] [stderr] Adding rand_core v0.3.1 (available: v0.6.4) [INFO] [stderr] Adding rand_core v0.4.2 (available: v0.6.4) [INFO] [stderr] Adding redox_syscall v0.1.57 (available: v0.5.6) [INFO] [stderr] Adding redox_users v0.3.5 (available: v0.4.6) [INFO] [stderr] Adding rust-argon2 v0.8.3 (available: v2.1.0) [INFO] [stderr] Adding strsim v0.8.0 (available: v0.11.1) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] [stderr] Adding synstructure v0.12.6 (available: v0.13.1) [INFO] [stderr] Adding textwrap v0.11.0 (available: v0.16.1) [INFO] [stderr] Adding toml v0.4.10 (available: v0.8.19) [INFO] [stderr] Adding unicode-width v0.1.14 (available: v0.2.0) [INFO] [stderr] Adding wasi v0.9.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding yaml-rust v0.3.5 (available: v0.4.5) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-7-tc1/source/hdfs-cmd/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] warning: /workspace/builds/worker-7-tc1/source/fs_test/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] warning: /workspace/builds/worker-7-tc1/source/hdfs/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] warning: /workspace/builds/worker-7-tc1/source/walk/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021 [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a95565ce36549857999e45fe819acf715130aa2365264ff5b86dbf6daf5591db [INFO] running `Command { std: "docker" "start" "-a" "a95565ce36549857999e45fe819acf715130aa2365264ff5b86dbf6daf5591db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a95565ce36549857999e45fe819acf715130aa2365264ff5b86dbf6daf5591db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a95565ce36549857999e45fe819acf715130aa2365264ff5b86dbf6daf5591db", kill_on_drop: false }` [INFO] [stdout] a95565ce36549857999e45fe819acf715130aa2365264ff5b86dbf6daf5591db [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" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 738a7b216a614bb001364fc4812124087cfb0da3fa01fcd9cf1ad1004d74544d [INFO] running `Command { std: "docker" "start" "-a" "738a7b216a614bb001364fc4812124087cfb0da3fa01fcd9cf1ad1004d74544d", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/hdfs-cmd/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] warning: /opt/rustwide/workdir/fs_test/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] warning: /opt/rustwide/workdir/hdfs/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] warning: /opt/rustwide/workdir/walk/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking gimli v0.31.0 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling nix v0.11.1 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking object v0.36.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling hdfs v0.1.0 (/opt/rustwide/workdir/hdfs) [INFO] [stderr] Checking rand v0.5.6 [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> hdfs/build.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking itertools v0.7.11 [INFO] [stderr] Checking fs_test v0.1.0 (/opt/rustwide/workdir/fs_test) [INFO] [stderr] Checking glob v0.2.11 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking addr2line v0.24.1 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking yaml-rust v0.3.5 [INFO] [stderr] Checking walk v0.1.0 (/opt/rustwide/workdir/walk) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> walk/src/walk.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 95 | impl<'a, T: FileSystem> Walk<'a, T> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 100 | ) -> Result, err::Error> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> walk/src/walk.rs:168:65 [INFO] [stdout] | [INFO] [stdout] 168 | return Some(Ok(Node::Dir(depth, path)));; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_recursive` is never used [INFO] [stdout] --> walk/src/walk.rs:189:8 [INFO] [stdout] | [INFO] [stdout] 95 | impl<'a, T: FileSystem> Walk<'a, T> { [INFO] [stdout] | ----------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 189 | fn is_recursive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking dirs v1.0.5 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking backtrace v0.3.74 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking env_logger v0.5.13 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking quick-xml v0.13.3 [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> walk/src/walk.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 95 | impl<'a, T: FileSystem> Walk<'a, T> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 100 | ) -> Result, err::Error> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> walk/src/walk.rs:168:65 [INFO] [stdout] | [INFO] [stdout] 168 | return Some(Ok(Node::Dir(depth, path)));; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> walk/src/tests.rs:280:40 [INFO] [stdout] | [INFO] [stdout] 280 | let walkbuilder = WalkBuilder::new(fs); [INFO] [stdout] | ---------------- ^^ expected `&_`, found `MockFS<'_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `MockFS<'_>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> walk/src/walk.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(file_system: &T) -> WalkBuilder { [INFO] [stdout] | ^^^ --------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 280 | let walkbuilder = WalkBuilder::new(&fs); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> walk/src/tests.rs:302:40 [INFO] [stdout] | [INFO] [stdout] 302 | let walkbuilder = WalkBuilder::new(fs); [INFO] [stdout] | ---------------- ^^ expected `&_`, found `MockFS<'_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `MockFS<'_>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> walk/src/walk.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(file_system: &T) -> WalkBuilder { [INFO] [stdout] | ^^^ --------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 302 | let walkbuilder = WalkBuilder::new(&fs); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> walk/src/tests.rs:325:40 [INFO] [stdout] | [INFO] [stdout] 325 | let walkbuilder = WalkBuilder::new(fs); [INFO] [stdout] | ---------------- ^^ expected `&_`, found `MockFS<'_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `MockFS<'_>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> walk/src/walk.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(file_system: &T) -> WalkBuilder { [INFO] [stdout] | ^^^ --------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 325 | let walkbuilder = WalkBuilder::new(&fs); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> walk/src/tests.rs:347:40 [INFO] [stdout] | [INFO] [stdout] 347 | let walkbuilder = WalkBuilder::new(fs); [INFO] [stdout] | ---------------- ^^ expected `&_`, found `MockFS<'_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `MockFS<'_>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> walk/src/walk.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(file_system: &T) -> WalkBuilder { [INFO] [stdout] | ^^^ --------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 347 | let walkbuilder = WalkBuilder::new(&fs); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> walk/src/tests.rs:369:40 [INFO] [stdout] | [INFO] [stdout] 369 | let walkbuilder = WalkBuilder::new(fs); [INFO] [stdout] | ---------------- ^^ expected `&_`, found `MockFS<'_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `MockFS<'_>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> walk/src/walk.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(file_system: &T) -> WalkBuilder { [INFO] [stdout] | ^^^ --------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 369 | let walkbuilder = WalkBuilder::new(&fs); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> walk/src/tests.rs:391:40 [INFO] [stdout] | [INFO] [stdout] 391 | let walkbuilder = WalkBuilder::new(fs); [INFO] [stdout] | ---------------- ^^ expected `&_`, found `MockFS<'_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `MockFS<'_>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> walk/src/walk.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(file_system: &T) -> WalkBuilder { [INFO] [stdout] | ^^^ --------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 391 | let walkbuilder = WalkBuilder::new(&fs); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> walk/src/tests.rs:419:40 [INFO] [stdout] | [INFO] [stdout] 419 | let walkbuilder = WalkBuilder::new(fs); [INFO] [stdout] | ---------------- ^^ expected `&_`, found `MockFS<'_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `MockFS<'_>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> walk/src/walk.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(file_system: &T) -> WalkBuilder { [INFO] [stdout] | ^^^ --------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 419 | let walkbuilder = WalkBuilder::new(&fs); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> walk/src/tests.rs:455:40 [INFO] [stdout] | [INFO] [stdout] 455 | let walkbuilder = WalkBuilder::new(fs); [INFO] [stdout] | ---------------- ^^ expected `&_`, found `MockFS<'_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `MockFS<'_>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> walk/src/walk.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(file_system: &T) -> WalkBuilder { [INFO] [stdout] | ^^^ --------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 455 | let walkbuilder = WalkBuilder::new(&fs); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> walk/src/tests.rs:501:40 [INFO] [stdout] | [INFO] [stdout] 501 | let walkbuilder = WalkBuilder::new(fs); [INFO] [stdout] | ---------------- ^^ expected `&_`, found `MockFS<'_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `MockFS<'_>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> walk/src/walk.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(file_system: &T) -> WalkBuilder { [INFO] [stdout] | ^^^ --------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 501 | let walkbuilder = WalkBuilder::new(&fs); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> walk/src/tests.rs:537:40 [INFO] [stdout] | [INFO] [stdout] 537 | let walkbuilder = WalkBuilder::new(fs); [INFO] [stdout] | ---------------- ^^ expected `&_`, found `MockFS<'_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found struct `MockFS<'_>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> walk/src/walk.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(file_system: &T) -> WalkBuilder { [INFO] [stdout] | ^^^ --------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 537 | let walkbuilder = WalkBuilder::new(&fs); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `root` [INFO] [stdout] --> walk/src/tests.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | / MockFS { [INFO] [stdout] 37 | | current_node: &root, [INFO] [stdout] | | ----- `root` is borrowed here [INFO] [stdout] 38 | | root, [INFO] [stdout] 39 | | } [INFO] [stdout] | |_________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `root` because it is borrowed [INFO] [stdout] --> walk/src/tests.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 33 | impl<'a> Default for MockFS<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 34 | fn default() -> Self { [INFO] [stdout] 35 | let root = Node::default(); [INFO] [stdout] | ---- binding `root` declared here [INFO] [stdout] 36 | / MockFS { [INFO] [stdout] 37 | | current_node: &root, [INFO] [stdout] | | ----- borrow of `root` occurs here [INFO] [stdout] 38 | | root, [INFO] [stdout] | | ^^^^ move out of `root` occurs here [INFO] [stdout] 39 | | } [INFO] [stdout] | |_________- returning this value requires that `root` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `root` [INFO] [stdout] --> walk/src/tests.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 45 | let current_node = MockFS::find_node_impl(&root, current_dir, &root)?; [INFO] [stdout] | ----- `root` is borrowed here [INFO] [stdout] 46 | Ok(MockFS { root, current_node }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `root` [INFO] [stdout] --> walk/src/tests.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 45 | let current_node = MockFS::find_node_impl(&root, current_dir, &root)?; [INFO] [stdout] | ----- `root` is borrowed here [INFO] [stdout] 46 | Ok(MockFS { root, current_node }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `root` because it is borrowed [INFO] [stdout] --> walk/src/tests.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 44 | fn new(root: Node, current_dir: &PathBuf) -> Result { [INFO] [stdout] | ---- - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | binding `root` declared here [INFO] [stdout] 45 | let current_node = MockFS::find_node_impl(&root, current_dir, &root)?; [INFO] [stdout] | ----- borrow of `root` occurs here [INFO] [stdout] 46 | Ok(MockFS { root, current_node }) [INFO] [stdout] | ------------^^^^----------------- [INFO] [stdout] | | | [INFO] [stdout] | | move out of `root` occurs here [INFO] [stdout] | returning this value requires that `root` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> walk/src/tests.rs:233:5 [INFO] [stdout] | [INFO] [stdout] 233 | MockFS::new(tree.build(&PathBuf::from("/")), &PathBuf::from("/")).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | temporary value created here [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0505, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `walk` (lib test) due to 17 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "738a7b216a614bb001364fc4812124087cfb0da3fa01fcd9cf1ad1004d74544d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "738a7b216a614bb001364fc4812124087cfb0da3fa01fcd9cf1ad1004d74544d", kill_on_drop: false }` [INFO] [stdout] 738a7b216a614bb001364fc4812124087cfb0da3fa01fcd9cf1ad1004d74544d