[INFO] updating cached repository stay-on-main/rust-fs [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/stay-on-main/rust-fs [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/stay-on-main/rust-fs" "work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/stay-on-main/rust-fs"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/stay-on-main/rust-fs'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/stay-on-main/rust-fs" "work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/stay-on-main/rust-fs"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/stay-on-main/rust-fs'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 857fc3a08d492625fe61f95bb587cd42e0ed4654 [INFO] sha for GitHub repo stay-on-main/rust-fs: 857fc3a08d492625fe61f95bb587cd42e0ed4654 [INFO] validating manifest of stay-on-main/rust-fs on toolchain master#60960a260f7b5c695fd0717311d72ce62dd4eb43 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of stay-on-main/rust-fs on toolchain try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing stay-on-main/rust-fs [INFO] finished frobbing stay-on-main/rust-fs [INFO] frobbed toml for stay-on-main/rust-fs written to work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/stay-on-main/rust-fs/Cargo.toml [INFO] started frobbing stay-on-main/rust-fs [INFO] finished frobbing stay-on-main/rust-fs [INFO] frobbed toml for stay-on-main/rust-fs written to work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/stay-on-main/rust-fs/Cargo.toml [INFO] crate stay-on-main/rust-fs already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking stay-on-main/rust-fs against try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 for pr-63376 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-63376/worker-7/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/stay-on-main/rust-fs:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] a1c893347841249953b11263dd636f725195603c0ef15b12332e51be29b165a3 [INFO] running `"docker" "start" "-a" "a1c893347841249953b11263dd636f725195603c0ef15b12332e51be29b165a3"` [INFO] [stderr] Checking rust-fs v0.1.0 (/opt/crater/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 { [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 { [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 { [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] For more information about this error, try `rustc --explain E0382`. [INFO] [stderr] error: Could not compile `rust-fs`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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 { [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 { [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 { [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] For more information about this 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" "a1c893347841249953b11263dd636f725195603c0ef15b12332e51be29b165a3"` [INFO] running `"docker" "rm" "-f" "a1c893347841249953b11263dd636f725195603c0ef15b12332e51be29b165a3"` [INFO] [stdout] a1c893347841249953b11263dd636f725195603c0ef15b12332e51be29b165a3