[INFO] cloning repository https://github.com/pgberlureau/kernel_shell [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pgberlureau/kernel_shell" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpgberlureau%2Fkernel_shell", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpgberlureau%2Fkernel_shell'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1e7d937f1e999c31298d8b157336dbb07a2ba4c6 [INFO] checking pgberlureau/kernel_shell against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146470-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpgberlureau%2Fkernel_shell" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pgberlureau/kernel_shell [INFO] finished tweaking git repo https://github.com/pgberlureau/kernel_shell [INFO] tweaked toml for git repo https://github.com/pgberlureau/kernel_shell written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pgberlureau/kernel_shell on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/pgberlureau/kernel_shell already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3cca349b986c0d5cfaa92eb346f953455c7cbf9fe25c5839cfc3737fa9c8761b [INFO] running `Command { std: "docker" "start" "-a" "3cca349b986c0d5cfaa92eb346f953455c7cbf9fe25c5839cfc3737fa9c8761b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3cca349b986c0d5cfaa92eb346f953455c7cbf9fe25c5839cfc3737fa9c8761b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cca349b986c0d5cfaa92eb346f953455c7cbf9fe25c5839cfc3737fa9c8761b", kill_on_drop: false }` [INFO] [stdout] 3cca349b986c0d5cfaa92eb346f953455c7cbf9fe25c5839cfc3737fa9c8761b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a741f5cc32ffc89f3e3872c7fb66749261c9003c54742964272e28f45dcdf9cc [INFO] running `Command { std: "docker" "start" "-a" "a741f5cc32ffc89f3e3872c7fb66749261c9003c54742964272e28f45dcdf9cc", kill_on_drop: false }` [INFO] [stderr] Checking fs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: the `#[test]` attribute may only be used on a non-associated function [INFO] [stdout] --> src/shell/fs/hd.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | #[test] // TODO : remove it [INFO] [stdout] | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions [INFO] [stdout] | [INFO] [stdout] help: replace with conditional compilation to make the item only exist when tests are being run [INFO] [stdout] | [INFO] [stdout] 33 - #[test] // TODO : remove it [INFO] [stdout] 33 + #[cfg(test)] // TODO : remove it [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the `#[test]` attribute may only be used on a non-associated function [INFO] [stdout] --> src/shell/fs/hd.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[test] // TODO : remove it [INFO] [stdout] | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions [INFO] [stdout] | [INFO] [stdout] help: replace with conditional compilation to make the item only exist when tests are being run [INFO] [stdout] | [INFO] [stdout] 48 - #[test] // TODO : remove it [INFO] [stdout] 48 + #[cfg(test)] // TODO : remove it [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the `#[test]` attribute may only be used on a non-associated function [INFO] [stdout] --> src/shell/fs/hd.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | #[test] [INFO] [stdout] | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions [INFO] [stdout] | [INFO] [stdout] help: replace with conditional compilation to make the item only exist when tests are being run [INFO] [stdout] | [INFO] [stdout] 53 - #[test] [INFO] [stdout] 53 + #[cfg(test)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the `#[test]` attribute may only be used on a non-associated function [INFO] [stdout] --> src/shell/fs.rs:309:1 [INFO] [stdout] | [INFO] [stdout] 309 | #[test] // TODO : remove it [INFO] [stdout] | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions [INFO] [stdout] 310 | / impl std::fmt::Display for Fdesc { [INFO] [stdout] 311 | | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> core::fmt::Result { [INFO] [stdout] 312 | | let name: std::string::String = self.name.iter().collect(); [INFO] [stdout] 313 | | write!(f, " [INFO] [stdout] ... | [INFO] [stdout] 320 | | } [INFO] [stdout] | |_- expected a non-associated function, found an implementation [INFO] [stdout] | [INFO] [stdout] help: replace with conditional compilation to make the item only exist when tests are being run [INFO] [stdout] | [INFO] [stdout] 309 - #[test] // TODO : remove it [INFO] [stdout] 309 + #[cfg(test)] // TODO : remove it [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `start` is never read [INFO] [stdout] --> src/shell.rs:427:25 [INFO] [stdout] | [INFO] [stdout] 427 | ' ' => {start += 1; end += 1}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `start` is never read [INFO] [stdout] --> src/shell.rs:427:25 [INFO] [stdout] | [INFO] [stdout] 427 | ' ' => {start += 1; end += 1}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `fs` (bin "fs" test) due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "a741f5cc32ffc89f3e3872c7fb66749261c9003c54742964272e28f45dcdf9cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a741f5cc32ffc89f3e3872c7fb66749261c9003c54742964272e28f45dcdf9cc", kill_on_drop: false }` [INFO] [stdout] a741f5cc32ffc89f3e3872c7fb66749261c9003c54742964272e28f45dcdf9cc