[INFO] updating cached repository https://github.com/TheHitchhiker/encryption [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] 499610c54cf9c8f57b5254c2a8d5bac7fd1e887e [INFO] checking TheHitchhiker/encryption against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheHitchhiker%2Fencryption" "/workspace/builds/worker-9/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] [stderr] Checking out files: 90% (110/121) Checking out files: 91% (111/121) Checking out files: 92% (112/121) Checking out files: 93% (113/121) Checking out files: 94% (114/121) Checking out files: 95% (115/121) Checking out files: 96% (117/121) Checking out files: 97% (118/121) Checking out files: 98% (119/121) Checking out files: 99% (120/121) Checking out files: 100% (121/121) Checking out files: 100% (121/121), done. [INFO] validating manifest of git repo https://github.com/TheHitchhiker/encryption on toolchain e4dba30b9b475d8750370c4dfb49b6541990904d [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/TheHitchhiker/encryption [INFO] finished tweaking git repo https://github.com/TheHitchhiker/encryption [INFO] tweaked toml for git repo https://github.com/TheHitchhiker/encryption written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/TheHitchhiker/encryption already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /workspace/builds/worker-9/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=forbid" "-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" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] de561aa5565325b76d10d5e1a36cb5ae51ed77bd0b520bb469418a03b02ce942 [INFO] running `"docker" "start" "-a" "de561aa5565325b76d10d5e1a36cb5ae51ed77bd0b520bb469418a03b02ce942"` [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking encrypt v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused imports: `OsRng`, `Rng` [INFO] [stderr] --> src/main.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 13 | use rand::{OsRng, Rng}; [INFO] [stderr] | ^^^^^ ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `plaintext` [INFO] [stderr] --> src/main.rs:71:6 [INFO] [stderr] | [INFO] [stderr] 71 | let plaintext = decrypt_aes(&ciphertext[..], &key, &nonce).ok().unwrap(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plaintext` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hash` [INFO] [stderr] --> src/main.rs:72:6 [INFO] [stderr] | [INFO] [stderr] 72 | let hash = hmac.input(&ciphertext); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:68:6 [INFO] [stderr] | [INFO] [stderr] 68 | let mut nonce = "c1b793ec2f95083ace2442bf458e7ba8".from_hex().unwrap(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `Operation` should have a snake case name [INFO] [stderr] --> src/main.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | let mut Operation = aes::cbc_decryptor( [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `operation` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] error: literal out of range for `u8` [INFO] [stderr] --> src/main.rs:22:23 [INFO] [stderr] | [INFO] [stderr] 22 | let mut buffer = [0, 1024]; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[deny(overflowing_literals)]` on by default [INFO] [stderr] = note: the literal `1024` does not fit into the type `u8` whose range is `0..=255` [INFO] [stderr] [INFO] [stderr] warning: variable `Operation` should have a snake case name [INFO] [stderr] --> src/main.rs:41:10 [INFO] [stderr] | [INFO] [stderr] 41 | let mut Operation = aes::cbc_encryptor( [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `operation` [INFO] [stderr] [INFO] [stderr] error: literal out of range for `u8` [INFO] [stderr] --> src/main.rs:47:23 [INFO] [stderr] | [INFO] [stderr] 47 | let mut buffer = [0, 1024]; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the literal `1024` does not fit into the type `u8` whose range is `0..=255` [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 6 warnings emitted [INFO] [stderr] [INFO] [stderr] error: could not compile `encrypt`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: unused imports: `OsRng`, `Rng` [INFO] [stderr] --> src/main.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 13 | use rand::{OsRng, Rng}; [INFO] [stderr] | ^^^^^ ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `plaintext` [INFO] [stderr] --> src/main.rs:71:6 [INFO] [stderr] | [INFO] [stderr] 71 | let plaintext = decrypt_aes(&ciphertext[..], &key, &nonce).ok().unwrap(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plaintext` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hash` [INFO] [stderr] --> src/main.rs:72:6 [INFO] [stderr] | [INFO] [stderr] 72 | let hash = hmac.input(&ciphertext); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hash` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:68:6 [INFO] [stderr] | [INFO] [stderr] 68 | let mut nonce = "c1b793ec2f95083ace2442bf458e7ba8".from_hex().unwrap(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `Operation` should have a snake case name [INFO] [stderr] --> src/main.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | let mut Operation = aes::cbc_decryptor( [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `operation` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] error: literal out of range for `u8` [INFO] [stderr] --> src/main.rs:22:23 [INFO] [stderr] | [INFO] [stderr] 22 | let mut buffer = [0, 1024]; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[deny(overflowing_literals)]` on by default [INFO] [stderr] = note: the literal `1024` does not fit into the type `u8` whose range is `0..=255` [INFO] [stderr] [INFO] [stderr] warning: variable `Operation` should have a snake case name [INFO] [stderr] --> src/main.rs:41:10 [INFO] [stderr] | [INFO] [stderr] 41 | let mut Operation = aes::cbc_encryptor( [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `operation` [INFO] [stderr] [INFO] [stderr] error: literal out of range for `u8` [INFO] [stderr] --> src/main.rs:47:23 [INFO] [stderr] | [INFO] [stderr] 47 | let mut buffer = [0, 1024]; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the literal `1024` does not fit into the type `u8` whose range is `0..=255` [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 6 warnings emitted [INFO] [stderr] [INFO] [stderr] error: could not compile `encrypt`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "de561aa5565325b76d10d5e1a36cb5ae51ed77bd0b520bb469418a03b02ce942"` [INFO] running `"docker" "rm" "-f" "de561aa5565325b76d10d5e1a36cb5ae51ed77bd0b520bb469418a03b02ce942"` [INFO] [stdout] de561aa5565325b76d10d5e1a36cb5ae51ed77bd0b520bb469418a03b02ce942