[INFO] cloning repository https://github.com/aidenfoxivey/RSA [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aidenfoxivey/RSA" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faidenfoxivey%2FRSA", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faidenfoxivey%2FRSA'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f70b228128c92513f895c920078a8200ea87ee50 [INFO] checking aidenfoxivey/RSA against try#b2fb67b8b6007ced9ad3f3b752a6fec899e7859c for pr-138915 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faidenfoxivey%2FRSA" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aidenfoxivey/RSA on toolchain b2fb67b8b6007ced9ad3f3b752a6fec899e7859c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b2fb67b8b6007ced9ad3f3b752a6fec899e7859c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aidenfoxivey/RSA [INFO] finished tweaking git repo https://github.com/aidenfoxivey/RSA [INFO] tweaked toml for git repo https://github.com/aidenfoxivey/RSA written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/aidenfoxivey/RSA 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" "+b2fb67b8b6007ced9ad3f3b752a6fec899e7859c" "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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+b2fb67b8b6007ced9ad3f3b752a6fec899e7859c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2e42094e4288d3ed40501793b611fef976a6f71723d96d96ea6fccfd4f11bac8 [INFO] running `Command { std: "docker" "start" "-a" "2e42094e4288d3ed40501793b611fef976a6f71723d96d96ea6fccfd4f11bac8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e42094e4288d3ed40501793b611fef976a6f71723d96d96ea6fccfd4f11bac8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e42094e4288d3ed40501793b611fef976a6f71723d96d96ea6fccfd4f11bac8", kill_on_drop: false }` [INFO] [stdout] 2e42094e4288d3ed40501793b611fef976a6f71723d96d96ea6fccfd4f11bac8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+b2fb67b8b6007ced9ad3f3b752a6fec899e7859c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0c3c4427cc3ea1630ccd847186c0c08f6b6c4cb50429a810d6624db8348c3ea4 [INFO] running `Command { std: "docker" "start" "-a" "0c3c4427cc3ea1630ccd847186c0c08f6b6c4cb50429a810d6624db8348c3ea4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.85 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking rsa v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `phi` [INFO] [stdout] --> src/main.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let phi = (&q - BigUint::from(1u32)) * (&p - BigUint::from(1u32)); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_phi` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0381]: used binding `e` isn't initialized [INFO] [stdout] --> src/main.rs:125:20 [INFO] [stdout] | [INFO] [stdout] 122 | let e; [INFO] [stdout] | - binding declared here but left uninitialized [INFO] [stdout] ... [INFO] [stdout] 125 | (RSAPubKey((n, e)), RSAPrivKey((n, d))) [INFO] [stdout] | ^ `e` used here but it isn't initialized [INFO] [stdout] | [INFO] [stdout] help: consider assigning a value [INFO] [stdout] | [INFO] [stdout] 122 | let e = Default::default(); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `n` [INFO] [stdout] --> src/main.rs:125:37 [INFO] [stdout] | [INFO] [stdout] 120 | let n = BigUint::from(&q * &p); [INFO] [stdout] | - move occurs because `n` has type `BigUint`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 125 | (RSAPubKey((n, e)), RSAPrivKey((n, d))) [INFO] [stdout] | - value moved here ^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 125 | (RSAPubKey((n.clone(), e)), RSAPrivKey((n, d))) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0381]: used binding `d` isn't initialized [INFO] [stdout] --> src/main.rs:125:40 [INFO] [stdout] | [INFO] [stdout] 123 | let d; [INFO] [stdout] | - binding declared here but left uninitialized [INFO] [stdout] 124 | [INFO] [stdout] 125 | (RSAPubKey((n, e)), RSAPrivKey((n, d))) [INFO] [stdout] | ^ `d` used here but it isn't initialized [INFO] [stdout] | [INFO] [stdout] help: consider assigning a value [INFO] [stdout] | [INFO] [stdout] 123 | let d = Default::default(); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/main.rs:128:22 [INFO] [stdout] | [INFO] [stdout] 128 | fn suitable_rsa_pair(p: &BigUint, q: &BigUint) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/main.rs:128:35 [INFO] [stdout] | [INFO] [stdout] 128 | fn suitable_rsa_pair(p: &BigUint, q: &BigUint) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0381, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0381`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rsa` (bin "rsa") due to 3 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `phi` [INFO] [stdout] --> src/main.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let phi = (&q - BigUint::from(1u32)) * (&p - BigUint::from(1u32)); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_phi` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0381]: used binding `e` isn't initialized [INFO] [stdout] --> src/main.rs:125:20 [INFO] [stdout] | [INFO] [stdout] 122 | let e; [INFO] [stdout] | - binding declared here but left uninitialized [INFO] [stdout] ... [INFO] [stdout] 125 | (RSAPubKey((n, e)), RSAPrivKey((n, d))) [INFO] [stdout] | ^ `e` used here but it isn't initialized [INFO] [stdout] | [INFO] [stdout] help: consider assigning a value [INFO] [stdout] | [INFO] [stdout] 122 | let e = Default::default(); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `n` [INFO] [stdout] --> src/main.rs:125:37 [INFO] [stdout] | [INFO] [stdout] 120 | let n = BigUint::from(&q * &p); [INFO] [stdout] | - move occurs because `n` has type `BigUint`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 125 | (RSAPubKey((n, e)), RSAPrivKey((n, d))) [INFO] [stdout] | - value moved here ^ value used here after move [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 125 | (RSAPubKey((n.clone(), e)), RSAPrivKey((n, d))) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0381]: used binding `d` isn't initialized [INFO] [stdout] --> src/main.rs:125:40 [INFO] [stdout] | [INFO] [stdout] 123 | let d; [INFO] [stdout] | - binding declared here but left uninitialized [INFO] [stdout] 124 | [INFO] [stdout] 125 | (RSAPubKey((n, e)), RSAPrivKey((n, d))) [INFO] [stdout] | ^ `d` used here but it isn't initialized [INFO] [stdout] | [INFO] [stdout] help: consider assigning a value [INFO] [stdout] | [INFO] [stdout] 123 | let d = Default::default(); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/main.rs:128:22 [INFO] [stdout] | [INFO] [stdout] 128 | fn suitable_rsa_pair(p: &BigUint, q: &BigUint) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/main.rs:128:35 [INFO] [stdout] | [INFO] [stdout] 128 | fn suitable_rsa_pair(p: &BigUint, q: &BigUint) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0381, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0381`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rsa` (bin "rsa" test) due to 3 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0c3c4427cc3ea1630ccd847186c0c08f6b6c4cb50429a810d6624db8348c3ea4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c3c4427cc3ea1630ccd847186c0c08f6b6c4cb50429a810d6624db8348c3ea4", kill_on_drop: false }` [INFO] [stdout] 0c3c4427cc3ea1630ccd847186c0c08f6b6c4cb50429a810d6624db8348c3ea4