[INFO] updating cached repository https://github.com/stay-on-main/rust-fs
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"`
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 857fc3a08d492625fe61f95bb587cd42e0ed4654
[INFO] testing stay-on-main/rust-fs against beta-2019-12-18 for beta-1.41-1
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstay-on-main%2Frust-fs" "/workspace/builds/worker-6/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/stay-on-main/rust-fs on toolchain beta-2019-12-18
[INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2019-12-18" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started tweaking git repo https://github.com/stay-on-main/rust-fs
[INFO] finished tweaking git repo https://github.com/stay-on-main/rust-fs
[INFO] tweaked toml for git repo https://github.com/stay-on-main/rust-fs written to /workspace/builds/worker-6/source/Cargo.toml
[INFO] crate git repo https://github.com/stay-on-main/rust-fs already has a lockfile, it will not be regenerated
[INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2019-12-18" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2019-12-18" "build" "--frozen"`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] a354c87e3a64a0bc0cbaeabed2fa8e45ddd1435976bdd456564b162b217f5f25
[INFO] running `"docker" "start" "-a" "a354c87e3a64a0bc0cbaeabed2fa8e45ddd1435976bdd456564b162b217f5f25"`
[INFO] [stderr]    Compiling rust-fs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unused variable: `path`
[INFO] [stderr]    --> src/main.rs:149:29
[INFO] [stderr]     |
[INFO] [stderr] 149 |     fn file_open(&mut self, path: &str) -> Option<File> {
[INFO] [stderr]     |                             ^^^^ help: consider prefixing with an underscore: `_path`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `file`
[INFO] [stderr]    --> src/main.rs:154:30
[INFO] [stderr]     |
[INFO] [stderr] 154 |     fn file_write(&mut self, file: &File, data: &[u8]) -> Option<usize> {
[INFO] [stderr]     |                              ^^^^ help: consider prefixing with an underscore: `_file`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `file`
[INFO] [stderr]    --> src/main.rs:158:29
[INFO] [stderr]     |
[INFO] [stderr] 158 |     fn file_read(&mut self, file: File, data: &mut [u8]) -> Option<usize> {
[INFO] [stderr]     |                             ^^^^ help: consider prefixing with an underscore: `_file`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `file`
[INFO] [stderr]    --> src/main.rs:162:30
[INFO] [stderr]     |
[INFO] [stderr] 162 |     fn file_close(&mut self, file: File) -> bool {
[INFO] [stderr]     |                              ^^^^ help: consider prefixing with an underscore: `_file`
[INFO] [stderr] 
[INFO] [stderr] error[E0594]: cannot assign to `file.index`, as `file` is not declared as mutable
[INFO] [stderr]    --> src/main.rs:173:5
[INFO] [stderr]     |
[INFO] [stderr] 169 |     let file = fs.file_open("hello.txt").unwrap();
[INFO] [stderr]     |         ---- help: consider changing this to be mutable: `mut file`
[INFO] [stderr] ...
[INFO] [stderr] 173 |     file.index = 0;
[INFO] [stderr]     |     ^^^^^^^^^^^^^^ cannot assign
[INFO] [stderr] 
[INFO] [stderr] error[E0382]: assign to part of moved value: `file`
[INFO] [stderr]    --> src/main.rs:173:5
[INFO] [stderr]     |
[INFO] [stderr] 169 |     let file = fs.file_open("hello.txt").unwrap();
[INFO] [stderr]     |         ---- move occurs because `file` has type `File`, which does not implement the `Copy` trait
[INFO] [stderr] ...
[INFO] [stderr] 172 |     fs.file_close(file);
[INFO] [stderr]     |                   ---- value moved here
[INFO] [stderr] 173 |     file.index = 0;
[INFO] [stderr]     |     ^^^^^^^^^^^^^^ value partially assigned here after move
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 2 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0382, E0594.
[INFO] [stderr] For more information about an error, try `rustc --explain E0382`.
[INFO] [stderr] error: could not compile `rust-fs`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "a354c87e3a64a0bc0cbaeabed2fa8e45ddd1435976bdd456564b162b217f5f25"`
[INFO] running `"docker" "rm" "-f" "a354c87e3a64a0bc0cbaeabed2fa8e45ddd1435976bdd456564b162b217f5f25"`
[INFO] [stdout] a354c87e3a64a0bc0cbaeabed2fa8e45ddd1435976bdd456564b162b217f5f25
