[INFO] cloning repository https://github.com/BenEdridge/rust-fs-mock [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BenEdridge/rust-fs-mock" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenEdridge%2Frust-fs-mock", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenEdridge%2Frust-fs-mock'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 75569afb7e963aeaf0b0fbbc497423f54e6b561a [INFO] testing BenEdridge/rust-fs-mock against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenEdridge%2Frust-fs-mock" "/workspace/builds/worker-70/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-70/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/BenEdridge/rust-fs-mock on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BenEdridge/rust-fs-mock [INFO] finished tweaking git repo https://github.com/BenEdridge/rust-fs-mock [INFO] tweaked toml for git repo https://github.com/BenEdridge/rust-fs-mock written to /workspace/builds/worker-70/source/Cargo.toml [INFO] crate git repo https://github.com/BenEdridge/rust-fs-mock already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d9ea670bcd6df96c3d0666ae28fbae4f1b8dc802506171a969df2cb771d8e8de [INFO] running `Command { std: "docker" "start" "-a" "d9ea670bcd6df96c3d0666ae28fbae4f1b8dc802506171a969df2cb771d8e8de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d9ea670bcd6df96c3d0666ae28fbae4f1b8dc802506171a969df2cb771d8e8de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9ea670bcd6df96c3d0666ae28fbae4f1b8dc802506171a969df2cb771d8e8de", kill_on_drop: false }` [INFO] [stdout] d9ea670bcd6df96c3d0666ae28fbae4f1b8dc802506171a969df2cb771d8e8de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a820423053a2c03b0bc0a872f1c731a9aa6086a36dea312b276ea338ad49b5ad [INFO] running `Command { std: "docker" "start" "-a" "a820423053a2c03b0bc0a872f1c731a9aa6086a36dea312b276ea338ad49b5ad", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling rust-fs-mock v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1556:36 [INFO] [stdout] | [INFO] [stdout] 1556 | pub fn remove_file>(path: P) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1595:33 [INFO] [stdout] | [INFO] [stdout] 1595 | pub fn metadata>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1630:41 [INFO] [stdout] | [INFO] [stdout] 1630 | pub fn symlink_metadata>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/lib.rs:1674:47 [INFO] [stdout] | [INFO] [stdout] 1674 | pub fn rename, Q: AsRef>(from: P, to: Q) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/lib.rs:1674:56 [INFO] [stdout] | [INFO] [stdout] 1674 | pub fn rename, Q: AsRef>(from: P, to: Q) -> io::Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/lib.rs:1727:45 [INFO] [stdout] | [INFO] [stdout] 1727 | pub fn copy, Q: AsRef>(from: P, to: Q) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/lib.rs:1727:54 [INFO] [stdout] | [INFO] [stdout] 1727 | pub fn copy, Q: AsRef>(from: P, to: Q) -> io::Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/lib.rs:1767:50 [INFO] [stdout] | [INFO] [stdout] 1767 | pub fn hard_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/lib.rs:1767:58 [INFO] [stdout] | [INFO] [stdout] 1767 | pub fn hard_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/lib.rs:1795:50 [INFO] [stdout] | [INFO] [stdout] 1795 | pub fn soft_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/lib.rs:1795:58 [INFO] [stdout] | [INFO] [stdout] 1795 | pub fn soft_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1830:34 [INFO] [stdout] | [INFO] [stdout] 1830 | pub fn read_link>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1872:37 [INFO] [stdout] | [INFO] [stdout] 1872 | pub fn canonicalize>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1992:35 [INFO] [stdout] | [INFO] [stdout] 1992 | pub fn remove_dir>(path: P) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2030:39 [INFO] [stdout] | [INFO] [stdout] 2030 | pub fn remove_dir_all>(path: P) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2104:33 [INFO] [stdout] | [INFO] [stdout] 2104 | pub fn read_dir>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2140:40 [INFO] [stdout] | [INFO] [stdout] 2140 | pub fn set_permissions>(path: P, perm: Permissions) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `perm` [INFO] [stdout] --> src/lib.rs:2140:49 [INFO] [stdout] | [INFO] [stdout] 2140 | pub fn set_permissions>(path: P, perm: Permissions) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_perm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/lib.rs:485:27 [INFO] [stdout] | [INFO] [stdout] 485 | pub fn set_len(&self, size: u64) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `perm` [INFO] [stdout] --> src/lib.rs:584:35 [INFO] [stdout] | [INFO] [stdout] 584 | pub fn set_permissions(&self, perm: Permissions) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_perm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/lib.rs:610:19 [INFO] [stdout] | [INFO] [stdout] 610 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lib.rs:617:24 [INFO] [stdout] | [INFO] [stdout] 617 | fn read(&mut self, buf: &mut [u8]) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bufs` [INFO] [stdout] --> src/lib.rs:621:33 [INFO] [stdout] | [INFO] [stdout] 621 | fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lib.rs:638:25 [INFO] [stdout] | [INFO] [stdout] 638 | fn write(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bufs` [INFO] [stdout] --> src/lib.rs:642:34 [INFO] [stdout] | [INFO] [stdout] 642 | fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/lib.rs:657:24 [INFO] [stdout] | [INFO] [stdout] 657 | fn seek(&mut self, pos: SeekFrom) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lib.rs:663:24 [INFO] [stdout] | [INFO] [stdout] 663 | fn read(&mut self, buf: &mut [u8]) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bufs` [INFO] [stdout] --> src/lib.rs:667:33 [INFO] [stdout] | [INFO] [stdout] 667 | fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lib.rs:684:25 [INFO] [stdout] | [INFO] [stdout] 684 | fn write(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bufs` [INFO] [stdout] --> src/lib.rs:688:34 [INFO] [stdout] | [INFO] [stdout] 688 | fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/lib.rs:703:24 [INFO] [stdout] | [INFO] [stdout] 703 | fn seek(&mut self, pos: SeekFrom) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read` [INFO] [stdout] --> src/lib.rs:739:28 [INFO] [stdout] | [INFO] [stdout] 739 | pub fn read(&mut self, read: bool) -> &mut Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `write` [INFO] [stdout] --> src/lib.rs:761:29 [INFO] [stdout] | [INFO] [stdout] 761 | pub fn write(&mut self, write: bool) -> &mut Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `append` [INFO] [stdout] --> src/lib.rs:807:30 [INFO] [stdout] | [INFO] [stdout] 807 | pub fn append(&mut self, append: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_append` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `truncate` [INFO] [stdout] --> src/lib.rs:828:32 [INFO] [stdout] | [INFO] [stdout] 828 | pub fn truncate(&mut self, truncate: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_truncate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `create` [INFO] [stdout] --> src/lib.rs:847:30 [INFO] [stdout] | [INFO] [stdout] 847 | pub fn create(&mut self, create: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_create` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `create_new` [INFO] [stdout] --> src/lib.rs:881:34 [INFO] [stdout] | [INFO] [stdout] 881 | pub fn create_new(&mut self, create_new: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_create_new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:934:21 [INFO] [stdout] | [INFO] [stdout] 934 | fn _open(&self, path: &Path) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `readonly` [INFO] [stdout] --> src/lib.rs:1243:36 [INFO] [stdout] | [INFO] [stdout] 1243 | pub fn set_readonly(&mut self, readonly: bool) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_readonly` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2204:23 [INFO] [stdout] | [INFO] [stdout] 2204 | fn _create(&self, path: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2209:30 [INFO] [stdout] | [INFO] [stdout] 2209 | fn create_dir_all(&self, path: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/lib.rs:722:5 [INFO] [stdout] | [INFO] [stdout] 722 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 723 | OpenOptions::new() [INFO] [stdout] | ------------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_dir_all` [INFO] [stdout] --> src/lib.rs:2209:8 [INFO] [stdout] | [INFO] [stdout] 2209 | fn create_dir_all(&self, path: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let file = fs::read("path"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.00s [INFO] running `Command { std: "docker" "inspect" "a820423053a2c03b0bc0a872f1c731a9aa6086a36dea312b276ea338ad49b5ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a820423053a2c03b0bc0a872f1c731a9aa6086a36dea312b276ea338ad49b5ad", kill_on_drop: false }` [INFO] [stdout] a820423053a2c03b0bc0a872f1c731a9aa6086a36dea312b276ea338ad49b5ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 00000b8ec69594965bdf206f93d8bedf87e5d21bc27d464197f0beeca5f1c7e6 [INFO] running `Command { std: "docker" "start" "-a" "00000b8ec69594965bdf206f93d8bedf87e5d21bc27d464197f0beeca5f1c7e6", kill_on_drop: false }` [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1556:36 [INFO] [stdout] | [INFO] [stdout] 1556 | pub fn remove_file>(path: P) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1595:33 [INFO] [stdout] | [INFO] [stdout] 1595 | pub fn metadata>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1630:41 [INFO] [stdout] | [INFO] [stdout] 1630 | pub fn symlink_metadata>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/lib.rs:1674:47 [INFO] [stdout] | [INFO] [stdout] 1674 | pub fn rename, Q: AsRef>(from: P, to: Q) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/lib.rs:1674:56 [INFO] [stdout] | [INFO] [stdout] 1674 | pub fn rename, Q: AsRef>(from: P, to: Q) -> io::Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/lib.rs:1727:45 [INFO] [stdout] | [INFO] [stdout] 1727 | pub fn copy, Q: AsRef>(from: P, to: Q) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/lib.rs:1727:54 [INFO] [stdout] | [INFO] [stdout] 1727 | pub fn copy, Q: AsRef>(from: P, to: Q) -> io::Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/lib.rs:1767:50 [INFO] [stdout] | [INFO] [stdout] 1767 | pub fn hard_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/lib.rs:1767:58 [INFO] [stdout] | [INFO] [stdout] 1767 | pub fn hard_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/lib.rs:1795:50 [INFO] [stdout] | [INFO] [stdout] 1795 | pub fn soft_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/lib.rs:1795:58 [INFO] [stdout] | [INFO] [stdout] 1795 | pub fn soft_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1830:34 [INFO] [stdout] | [INFO] [stdout] 1830 | pub fn read_link>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1872:37 [INFO] [stdout] | [INFO] [stdout] 1872 | pub fn canonicalize>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1992:35 [INFO] [stdout] | [INFO] [stdout] 1992 | pub fn remove_dir>(path: P) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2030:39 [INFO] [stdout] | [INFO] [stdout] 2030 | pub fn remove_dir_all>(path: P) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2104:33 [INFO] [stdout] | [INFO] [stdout] 2104 | pub fn read_dir>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2140:40 [INFO] [stdout] | [INFO] [stdout] 2140 | pub fn set_permissions>(path: P, perm: Permissions) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `perm` [INFO] [stdout] --> src/lib.rs:2140:49 [INFO] [stdout] | [INFO] [stdout] 2140 | pub fn set_permissions>(path: P, perm: Permissions) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_perm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/lib.rs:485:27 [INFO] [stdout] | [INFO] [stdout] 485 | pub fn set_len(&self, size: u64) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `perm` [INFO] [stdout] --> src/lib.rs:584:35 [INFO] [stdout] | [INFO] [stdout] 584 | pub fn set_permissions(&self, perm: Permissions) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_perm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/lib.rs:610:19 [INFO] [stdout] | [INFO] [stdout] 610 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lib.rs:617:24 [INFO] [stdout] | [INFO] [stdout] 617 | fn read(&mut self, buf: &mut [u8]) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bufs` [INFO] [stdout] --> src/lib.rs:621:33 [INFO] [stdout] | [INFO] [stdout] 621 | fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lib.rs:638:25 [INFO] [stdout] | [INFO] [stdout] 638 | fn write(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bufs` [INFO] [stdout] --> src/lib.rs:642:34 [INFO] [stdout] | [INFO] [stdout] 642 | fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/lib.rs:657:24 [INFO] [stdout] | [INFO] [stdout] 657 | fn seek(&mut self, pos: SeekFrom) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lib.rs:663:24 [INFO] [stdout] | [INFO] [stdout] 663 | fn read(&mut self, buf: &mut [u8]) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bufs` [INFO] [stdout] --> src/lib.rs:667:33 [INFO] [stdout] | [INFO] [stdout] 667 | fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lib.rs:684:25 [INFO] [stdout] | [INFO] [stdout] 684 | fn write(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bufs` [INFO] [stdout] --> src/lib.rs:688:34 [INFO] [stdout] | [INFO] [stdout] 688 | fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/lib.rs:703:24 [INFO] [stdout] | [INFO] [stdout] 703 | fn seek(&mut self, pos: SeekFrom) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rust-fs-mock v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `read` [INFO] [stdout] --> src/lib.rs:739:28 [INFO] [stdout] | [INFO] [stdout] 739 | pub fn read(&mut self, read: bool) -> &mut Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `write` [INFO] [stdout] --> src/lib.rs:761:29 [INFO] [stdout] | [INFO] [stdout] 761 | pub fn write(&mut self, write: bool) -> &mut Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `append` [INFO] [stdout] --> src/lib.rs:807:30 [INFO] [stdout] | [INFO] [stdout] 807 | pub fn append(&mut self, append: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_append` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `truncate` [INFO] [stdout] --> src/lib.rs:828:32 [INFO] [stdout] | [INFO] [stdout] 828 | pub fn truncate(&mut self, truncate: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_truncate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `create` [INFO] [stdout] --> src/lib.rs:847:30 [INFO] [stdout] | [INFO] [stdout] 847 | pub fn create(&mut self, create: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_create` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `create_new` [INFO] [stdout] --> src/lib.rs:881:34 [INFO] [stdout] | [INFO] [stdout] 881 | pub fn create_new(&mut self, create_new: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_create_new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:934:21 [INFO] [stdout] | [INFO] [stdout] 934 | fn _open(&self, path: &Path) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `readonly` [INFO] [stdout] --> src/lib.rs:1243:36 [INFO] [stdout] | [INFO] [stdout] 1243 | pub fn set_readonly(&mut self, readonly: bool) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_readonly` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2204:23 [INFO] [stdout] | [INFO] [stdout] 2204 | fn _create(&self, path: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2209:30 [INFO] [stdout] | [INFO] [stdout] 2209 | fn create_dir_all(&self, path: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/lib.rs:722:5 [INFO] [stdout] | [INFO] [stdout] 722 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 723 | OpenOptions::new() [INFO] [stdout] | ------------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_dir_all` [INFO] [stdout] --> src/lib.rs:2209:8 [INFO] [stdout] | [INFO] [stdout] 2209 | fn create_dir_all(&self, path: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let file = fs::read("path"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1556:36 [INFO] [stdout] | [INFO] [stdout] 1556 | pub fn remove_file>(path: P) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1595:33 [INFO] [stdout] | [INFO] [stdout] 1595 | pub fn metadata>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1630:41 [INFO] [stdout] | [INFO] [stdout] 1630 | pub fn symlink_metadata>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/lib.rs:1674:47 [INFO] [stdout] | [INFO] [stdout] 1674 | pub fn rename, Q: AsRef>(from: P, to: Q) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/lib.rs:1674:56 [INFO] [stdout] | [INFO] [stdout] 1674 | pub fn rename, Q: AsRef>(from: P, to: Q) -> io::Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/lib.rs:1727:45 [INFO] [stdout] | [INFO] [stdout] 1727 | pub fn copy, Q: AsRef>(from: P, to: Q) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/lib.rs:1727:54 [INFO] [stdout] | [INFO] [stdout] 1727 | pub fn copy, Q: AsRef>(from: P, to: Q) -> io::Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/lib.rs:1767:50 [INFO] [stdout] | [INFO] [stdout] 1767 | pub fn hard_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/lib.rs:1767:58 [INFO] [stdout] | [INFO] [stdout] 1767 | pub fn hard_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> src/lib.rs:1795:50 [INFO] [stdout] | [INFO] [stdout] 1795 | pub fn soft_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> src/lib.rs:1795:58 [INFO] [stdout] | [INFO] [stdout] 1795 | pub fn soft_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1830:34 [INFO] [stdout] | [INFO] [stdout] 1830 | pub fn read_link>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1872:37 [INFO] [stdout] | [INFO] [stdout] 1872 | pub fn canonicalize>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:1992:35 [INFO] [stdout] | [INFO] [stdout] 1992 | pub fn remove_dir>(path: P) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2030:39 [INFO] [stdout] | [INFO] [stdout] 2030 | pub fn remove_dir_all>(path: P) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2104:33 [INFO] [stdout] | [INFO] [stdout] 2104 | pub fn read_dir>(path: P) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2140:40 [INFO] [stdout] | [INFO] [stdout] 2140 | pub fn set_permissions>(path: P, perm: Permissions) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `perm` [INFO] [stdout] --> src/lib.rs:2140:49 [INFO] [stdout] | [INFO] [stdout] 2140 | pub fn set_permissions>(path: P, perm: Permissions) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_perm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/lib.rs:485:27 [INFO] [stdout] | [INFO] [stdout] 485 | pub fn set_len(&self, size: u64) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `perm` [INFO] [stdout] --> src/lib.rs:584:35 [INFO] [stdout] | [INFO] [stdout] 584 | pub fn set_permissions(&self, perm: Permissions) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_perm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/lib.rs:610:19 [INFO] [stdout] | [INFO] [stdout] 610 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lib.rs:617:24 [INFO] [stdout] | [INFO] [stdout] 617 | fn read(&mut self, buf: &mut [u8]) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bufs` [INFO] [stdout] --> src/lib.rs:621:33 [INFO] [stdout] | [INFO] [stdout] 621 | fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lib.rs:638:25 [INFO] [stdout] | [INFO] [stdout] 638 | fn write(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bufs` [INFO] [stdout] --> src/lib.rs:642:34 [INFO] [stdout] | [INFO] [stdout] 642 | fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/lib.rs:657:24 [INFO] [stdout] | [INFO] [stdout] 657 | fn seek(&mut self, pos: SeekFrom) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lib.rs:663:24 [INFO] [stdout] | [INFO] [stdout] 663 | fn read(&mut self, buf: &mut [u8]) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bufs` [INFO] [stdout] --> src/lib.rs:667:33 [INFO] [stdout] | [INFO] [stdout] 667 | fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lib.rs:684:25 [INFO] [stdout] | [INFO] [stdout] 684 | fn write(&mut self, buf: &[u8]) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bufs` [INFO] [stdout] --> src/lib.rs:688:34 [INFO] [stdout] | [INFO] [stdout] 688 | fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/lib.rs:703:24 [INFO] [stdout] | [INFO] [stdout] 703 | fn seek(&mut self, pos: SeekFrom) -> io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read` [INFO] [stdout] --> src/lib.rs:739:28 [INFO] [stdout] | [INFO] [stdout] 739 | pub fn read(&mut self, read: bool) -> &mut Self { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `write` [INFO] [stdout] --> src/lib.rs:761:29 [INFO] [stdout] | [INFO] [stdout] 761 | pub fn write(&mut self, write: bool) -> &mut Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `append` [INFO] [stdout] --> src/lib.rs:807:30 [INFO] [stdout] | [INFO] [stdout] 807 | pub fn append(&mut self, append: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_append` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `truncate` [INFO] [stdout] --> src/lib.rs:828:32 [INFO] [stdout] | [INFO] [stdout] 828 | pub fn truncate(&mut self, truncate: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_truncate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `create` [INFO] [stdout] --> src/lib.rs:847:30 [INFO] [stdout] | [INFO] [stdout] 847 | pub fn create(&mut self, create: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_create` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `create_new` [INFO] [stdout] --> src/lib.rs:881:34 [INFO] [stdout] | [INFO] [stdout] 881 | pub fn create_new(&mut self, create_new: bool) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_create_new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:934:21 [INFO] [stdout] | [INFO] [stdout] 934 | fn _open(&self, path: &Path) -> io::Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `readonly` [INFO] [stdout] --> src/lib.rs:1243:36 [INFO] [stdout] | [INFO] [stdout] 1243 | pub fn set_readonly(&mut self, readonly: bool) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_readonly` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2204:23 [INFO] [stdout] | [INFO] [stdout] 2204 | fn _create(&self, path: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/lib.rs:2209:30 [INFO] [stdout] | [INFO] [stdout] 2209 | fn create_dir_all(&self, path: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/lib.rs:722:5 [INFO] [stdout] | [INFO] [stdout] 722 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 723 | OpenOptions::new() [INFO] [stdout] | ------------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_dir_all` [INFO] [stdout] --> src/lib.rs:2209:8 [INFO] [stdout] | [INFO] [stdout] 2209 | fn create_dir_all(&self, path: &Path) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.90s [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "00000b8ec69594965bdf206f93d8bedf87e5d21bc27d464197f0beeca5f1c7e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00000b8ec69594965bdf206f93d8bedf87e5d21bc27d464197f0beeca5f1c7e6", kill_on_drop: false }` [INFO] [stdout] 00000b8ec69594965bdf206f93d8bedf87e5d21bc27d464197f0beeca5f1c7e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ac6d05889b095ecab931a0297fd6116bc53230f9c2f85fb2bb3d776bde4b9bf9 [INFO] running `Command { std: "docker" "start" "-a" "ac6d05889b095ecab931a0297fd6116bc53230f9c2f85fb2bb3d776bde4b9bf9", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/lib.rs:1556:36 [INFO] [stderr] | [INFO] [stderr] 1556 | pub fn remove_file>(path: P) -> io::Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/lib.rs:1595:33 [INFO] [stderr] | [INFO] [stderr] 1595 | pub fn metadata>(path: P) -> io::Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/lib.rs:1630:41 [INFO] [stderr] | [INFO] [stderr] 1630 | pub fn symlink_metadata>(path: P) -> io::Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `from` [INFO] [stderr] --> src/lib.rs:1674:47 [INFO] [stderr] | [INFO] [stderr] 1674 | pub fn rename, Q: AsRef>(from: P, to: Q) -> io::Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `to` [INFO] [stderr] --> src/lib.rs:1674:56 [INFO] [stderr] | [INFO] [stderr] 1674 | pub fn rename, Q: AsRef>(from: P, to: Q) -> io::Result<()> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `from` [INFO] [stderr] --> src/lib.rs:1727:45 [INFO] [stderr] | [INFO] [stderr] 1727 | pub fn copy, Q: AsRef>(from: P, to: Q) -> io::Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `to` [INFO] [stderr] --> src/lib.rs:1727:54 [INFO] [stderr] | [INFO] [stderr] 1727 | pub fn copy, Q: AsRef>(from: P, to: Q) -> io::Result { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `src` [INFO] [stderr] --> src/lib.rs:1767:50 [INFO] [stderr] | [INFO] [stderr] 1767 | pub fn hard_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dst` [INFO] [stderr] --> src/lib.rs:1767:58 [INFO] [stderr] | [INFO] [stderr] 1767 | pub fn hard_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `src` [INFO] [stderr] --> src/lib.rs:1795:50 [INFO] [stderr] | [INFO] [stderr] 1795 | pub fn soft_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dst` [INFO] [stderr] --> src/lib.rs:1795:58 [INFO] [stderr] | [INFO] [stderr] 1795 | pub fn soft_link, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/lib.rs:1830:34 [INFO] [stderr] | [INFO] [stderr] 1830 | pub fn read_link>(path: P) -> io::Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/lib.rs:1872:37 [INFO] [stderr] | [INFO] [stderr] 1872 | pub fn canonicalize>(path: P) -> io::Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/lib.rs:1992:35 [INFO] [stderr] | [INFO] [stderr] 1992 | pub fn remove_dir>(path: P) -> io::Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/lib.rs:2030:39 [INFO] [stderr] | [INFO] [stderr] 2030 | pub fn remove_dir_all>(path: P) -> io::Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/lib.rs:2104:33 [INFO] [stderr] | [INFO] [stderr] 2104 | pub fn read_dir>(path: P) -> io::Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/lib.rs:2140:40 [INFO] [stderr] | [INFO] [stderr] 2140 | pub fn set_permissions>(path: P, perm: Permissions) -> io::Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `perm` [INFO] [stderr] --> src/lib.rs:2140:49 [INFO] [stderr] | [INFO] [stderr] 2140 | pub fn set_permissions>(path: P, perm: Permissions) -> io::Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_perm` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `size` [INFO] [stderr] --> src/lib.rs:485:27 [INFO] [stderr] | [INFO] [stderr] 485 | pub fn set_len(&self, size: u64) -> io::Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `perm` [INFO] [stderr] --> src/lib.rs:584:35 [INFO] [stderr] | [INFO] [stderr] 584 | pub fn set_permissions(&self, perm: Permissions) -> io::Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_perm` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/lib.rs:610:19 [INFO] [stderr] | [INFO] [stderr] 610 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `buf` [INFO] [stderr] --> src/lib.rs:617:24 [INFO] [stderr] | [INFO] [stderr] 617 | fn read(&mut self, buf: &mut [u8]) -> io::Result { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bufs` [INFO] [stderr] --> src/lib.rs:621:33 [INFO] [stderr] | [INFO] [stderr] 621 | fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `buf` [INFO] [stderr] --> src/lib.rs:638:25 [INFO] [stderr] | [INFO] [stderr] 638 | fn write(&mut self, buf: &[u8]) -> io::Result { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bufs` [INFO] [stderr] --> src/lib.rs:642:34 [INFO] [stderr] | [INFO] [stderr] 642 | fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pos` [INFO] [stderr] --> src/lib.rs:657:24 [INFO] [stderr] | [INFO] [stderr] 657 | fn seek(&mut self, pos: SeekFrom) -> io::Result { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `buf` [INFO] [stderr] --> src/lib.rs:663:24 [INFO] [stderr] | [INFO] [stderr] 663 | fn read(&mut self, buf: &mut [u8]) -> io::Result { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bufs` [INFO] [stderr] --> src/lib.rs:667:33 [INFO] [stderr] | [INFO] [stderr] 667 | fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `buf` [INFO] [stderr] --> src/lib.rs:684:25 [INFO] [stderr] | [INFO] [stderr] 684 | fn write(&mut self, buf: &[u8]) -> io::Result { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bufs` [INFO] [stderr] --> src/lib.rs:688:34 [INFO] [stderr] | [INFO] [stderr] 688 | fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> io::Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bufs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pos` [INFO] [stderr] --> src/lib.rs:703:24 [INFO] [stderr] | [INFO] [stderr] 703 | fn seek(&mut self, pos: SeekFrom) -> io::Result { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `read` [INFO] [stderr] --> src/lib.rs:739:28 [INFO] [stderr] | [INFO] [stderr] 739 | pub fn read(&mut self, read: bool) -> &mut Self { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_read` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `write` [INFO] [stderr] --> src/lib.rs:761:29 [INFO] [stderr] | [INFO] [stderr] 761 | pub fn write(&mut self, write: bool) -> &mut Self { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_write` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `append` [INFO] [stderr] --> src/lib.rs:807:30 [INFO] [stderr] | [INFO] [stderr] 807 | pub fn append(&mut self, append: bool) -> &mut Self { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_append` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `truncate` [INFO] [stderr] --> src/lib.rs:828:32 [INFO] [stderr] | [INFO] [stderr] 828 | pub fn truncate(&mut self, truncate: bool) -> &mut Self { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_truncate` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `create` [INFO] [stderr] --> src/lib.rs:847:30 [INFO] [stderr] | [INFO] [stderr] 847 | pub fn create(&mut self, create: bool) -> &mut Self { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_create` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `create_new` [INFO] [stderr] --> src/lib.rs:881:34 [INFO] [stderr] | [INFO] [stderr] 881 | pub fn create_new(&mut self, create_new: bool) -> &mut Self { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_create_new` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/lib.rs:934:21 [INFO] [stderr] | [INFO] [stderr] 934 | fn _open(&self, path: &Path) -> io::Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `readonly` [INFO] [stderr] --> src/lib.rs:1243:36 [INFO] [stderr] | [INFO] [stderr] 1243 | pub fn set_readonly(&mut self, readonly: bool) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_readonly` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/lib.rs:2204:23 [INFO] [stderr] | [INFO] [stderr] 2204 | fn _create(&self, path: &Path) -> io::Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/lib.rs:2209:30 [INFO] [stderr] | [INFO] [stderr] 2209 | fn create_dir_all(&self, path: &Path) -> io::Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: function cannot return without recursing [INFO] [stderr] --> src/lib.rs:722:5 [INFO] [stderr] | [INFO] [stderr] 722 | pub fn new() -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stderr] 723 | OpenOptions::new() [INFO] [stderr] | ------------------ recursive call site [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stderr] = help: a `loop` may express intention better if this is on purpose [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `create_dir_all` [INFO] [stderr] --> src/lib.rs:2209:8 [INFO] [stderr] | [INFO] [stderr] 2209 | fn create_dir_all(&self, path: &Path) -> io::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rust-fs-mock` (lib) generated 43 warnings [INFO] [stderr] warning: `rust-fs-mock` (lib test) generated 43 warnings (43 duplicates) [INFO] [stderr] warning: unused variable: `file` [INFO] [stderr] --> src/main.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 6 | let file = fs::read("path"); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rust-fs-mock` (bin "rust-fs-mock" test) generated 1 warning [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.69s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rust_fs_mock-74a7aa2004b5482d) [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rust_fs_mock-a0a7bda36c8c064e) [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] Doc-tests rust-fs-mock [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 62 tests [INFO] [stdout] test src/lib.rs - File::open (line 329) - compile ... ok [INFO] [stdout] test src/lib.rs - File::set_len (line 472) - compile ... ok [INFO] [stdout] test src/lib.rs - DirBuilder::create (line 2190) - compile ... ok [INFO] [stdout] test src/lib.rs - File::sync_all (line 404) - compile ... ok [INFO] [stdout] test src/lib.rs - File (line 63) - compile ... ok [INFO] [stdout] test src/lib.rs - DirEntry::path (line 1383) - compile ... ok [INFO] [stdout] test src/lib.rs - File::metadata (line 493) - compile ... ok [INFO] [stdout] test src/lib.rs - remove_file (line 1547) - compile ... ok [INFO] [stdout] test src/lib.rs - FileType::is_dir (line 1260) - compile ... ok [INFO] [stdout] test src/lib.rs - create_dir_all (line 1948) - compile ... ok [INFO] [stdout] test src/lib.rs - FileType::is_file (line 1293) - compile ... ok [INFO] [stdout] test src/lib.rs - Metadata::is_dir (line 980) - compile ... ok [INFO] [stdout] test src/lib.rs - File::with_options (line 379) - compile ... FAILED [INFO] [stdout] test src/lib.rs - File::set_permissions (line 569) - compile ... ok [INFO] [stdout] test src/lib.rs - File::try_clone (line 515) - compile ... ok [INFO] [stdout] test src/lib.rs - symlink_metadata (line 1620) - compile ... ok [INFO] [stdout] test src/lib.rs - OpenOptions::truncate (line 822) - compile ... ok [INFO] [stdout] test src/lib.rs - File::create (line 351) - compile ... ok [INFO] [stdout] test src/lib.rs - DirBuilder::new (line 2151) ... ok [INFO] [stdout] test src/lib.rs - remove_dir_all (line 2021) - compile ... ok [INFO] [stdout] test src/lib.rs - File (line 47) - compile ... ok [INFO] [stdout] test src/lib.rs - File::try_clone (line 529) - compile ... ok [INFO] [stdout] test src/lib.rs - set_permissions (line 2129) - compile ... ok [INFO] [stdout] test src/lib.rs - OpenOptions::open (line 918) - compile ... ok [INFO] [stdout] test src/lib.rs - File (line 34) - compile ... ok [INFO] [stdout] test src/lib.rs - OpenOptions::append (line 801) - compile ... ok [INFO] [stdout] test src/lib.rs - read_to_string (line 268) - compile ... ok [INFO] [stdout] test src/lib.rs - write (line 300) - compile ... ok [INFO] [stdout] test src/lib.rs - hard_link (line 1758) - compile ... ok [INFO] [stdout] test src/lib.rs - Permissions::readonly (line 1196) - compile ... ok [INFO] [stdout] test src/lib.rs - create_dir (line 1904) - compile ... ok [INFO] [stdout] test src/lib.rs - OpenOptions (line 163) - compile ... ok [INFO] [stdout] test src/lib.rs - OpenOptions::new (line 715) - compile ... ok [INFO] [stdout] test src/lib.rs - Permissions::set_readonly (line 1224) - compile ... ok [INFO] [stdout] test src/lib.rs - OpenOptions (line 154) - compile ... ok [INFO] [stdout] test src/lib.rs - FileType::is_symlink (line 1329) - compile ... ok [INFO] [stdout] test src/lib.rs - Metadata::file_type (line 957) - compile ... ok [INFO] [stdout] test src/lib.rs - copy (line 1718) - compile ... ok [INFO] [stdout] test src/lib.rs - Metadata::permissions (line 1047) - compile ... ok [INFO] [stdout] test src/lib.rs - Metadata::created (line 1143) - compile ... ok [INFO] [stdout] test src/lib.rs - Metadata::is_file (line 1008) - compile ... ok [INFO] [stdout] test src/lib.rs - read_link (line 1821) - compile ... ok [INFO] [stdout] test src/lib.rs - OpenOptions::read (line 733) - compile ... ok [INFO] [stdout] test src/lib.rs - metadata (line 1585) - compile ... ok [INFO] [stdout] test src/lib.rs - read (line 229) - compile ... ok [INFO] [stdout] test src/lib.rs - OpenOptions::write (line 755) - compile ... ok [INFO] [stdout] test src/lib.rs - Metadata::len (line 1027) - compile ... ok [INFO] [stdout] test src/lib.rs - OpenOptions::create_new (line 873) - compile ... ok [INFO] [stdout] test src/lib.rs - rename (line 1665) - compile ... ok [INFO] [stdout] test src/lib.rs - File::sync_data (line 435) - compile ... ok [INFO] [stdout] test src/lib.rs - remove_dir (line 1983) - compile ... ok [INFO] [stdout] test src/lib.rs - DirEntry::metadata (line 1426) ... ok [INFO] [stdout] test src/lib.rs - OpenOptions::create (line 841) - compile ... ok [INFO] [stdout] test src/lib.rs - read_dir (line 2085) - compile ... ok [INFO] [stdout] test src/lib.rs - canonicalize (line 1863) - compile ... ok [INFO] [stdout] test src/lib.rs - Metadata::modified (line 1075) - compile ... ok [INFO] [stdout] test src/lib.rs - DirEntry::file_name (line 1490) ... ok [INFO] [stdout] test src/lib.rs - Metadata::accessed (line 1110) - compile ... ok [INFO] [stdout] test src/lib.rs - soft_link (line 1786) - compile ... ok [INFO] [stdout] test src/lib.rs - DirEntry::file_type (line 1462) ... ok [INFO] [stdout] test src/lib.rs - DirBuilder::recursive (line 2170) ... ok [INFO] [stdout] test src/lib.rs - read_dir (line 2063) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - File::with_options (line 379) stdout ---- [INFO] [stdout] error[E0599]: no function or associated item named `with_options` found for struct `File` in the current scope [INFO] [stdout] --> src/lib.rs:384:23 [INFO] [stdout] | [INFO] [stdout] 6 | let mut f = File::with_options().read(true).open("foo.txt")?; [INFO] [stdout] | ^^^^^^^^^^^^ function or associated item not found in `File` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - File::with_options (line 379) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 61 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.24s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "ac6d05889b095ecab931a0297fd6116bc53230f9c2f85fb2bb3d776bde4b9bf9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac6d05889b095ecab931a0297fd6116bc53230f9c2f85fb2bb3d776bde4b9bf9", kill_on_drop: false }` [INFO] [stdout] ac6d05889b095ecab931a0297fd6116bc53230f9c2f85fb2bb3d776bde4b9bf9