[INFO] cloning repository https://github.com/stefanotorresi/hello-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/stefanotorresi/hello-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstefanotorresi%2Fhello-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstefanotorresi%2Fhello-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 97fff6b19288ce9d49fb6d783ce2a3f514b6867a [INFO] checking stefanotorresi/hello-rust against try#173780a87744406b7489b28349c0176f14bb3881 for pr-135841 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstefanotorresi%2Fhello-rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/stefanotorresi/hello-rust on toolchain 173780a87744406b7489b28349c0176f14bb3881 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+173780a87744406b7489b28349c0176f14bb3881" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/stefanotorresi/hello-rust [INFO] finished tweaking git repo https://github.com/stefanotorresi/hello-rust [INFO] tweaked toml for git repo https://github.com/stefanotorresi/hello-rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/stefanotorresi/hello-rust 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" "+173780a87744406b7489b28349c0176f14bb3881" "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-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+173780a87744406b7489b28349c0176f14bb3881" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6085e3bded270185923919f6c91933d286638d9a399eeff9ca7386797800760e [INFO] running `Command { std: "docker" "start" "-a" "6085e3bded270185923919f6c91933d286638d9a399eeff9ca7386797800760e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6085e3bded270185923919f6c91933d286638d9a399eeff9ca7386797800760e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6085e3bded270185923919f6c91933d286638d9a399eeff9ca7386797800760e", kill_on_drop: false }` [INFO] [stdout] 6085e3bded270185923919f6c91933d286638d9a399eeff9ca7386797800760e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+173780a87744406b7489b28349c0176f14bb3881" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9e819ecc6de60aa8fe1e290ae16c8763f2fba1688f93f7e28ae450dd70494b68 [INFO] running `Command { std: "docker" "start" "-a" "9e819ecc6de60aa8fe1e290ae16c8763f2fba1688f93f7e28ae450dd70494b68", kill_on_drop: false }` [INFO] [stderr] Checking hello-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/algos/fibonacci.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | let result = FIBONACCI_NUMBERS.get(n); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/algos/fibonacci.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | let last = FIBONACCI_NUMBERS.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/algos/fibonacci.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | FIBONACCI_NUMBERS.push(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/algos/fibonacci.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | FIBONACCI_NUMBERS.push(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/algos/fibonacci.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | FIBONACCI_NUMBERS.push(FIBONACCI_NUMBERS[i - 1] + FIBONACCI_NUMBERS[i - 2]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fibonacci_memoized` in this scope [INFO] [stdout] --> src/algos/fibonacci.rs:57:34 [INFO] [stdout] | [INFO] [stdout] 57 | assert_eq!(63245986, fibonacci_memoized(40)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fibonacci_memoized` in this scope [INFO] [stdout] --> src/algos/fibonacci.rs:58:27 [INFO] [stdout] | [INFO] [stdout] 58 | assert_eq!(0, fibonacci_memoized(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fibonacci_memoized` in this scope [INFO] [stdout] --> src/algos/fibonacci.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | assert_eq!(0, fibonacci_memoized(1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fibonacci_memoized` in this scope [INFO] [stdout] --> src/algos/fibonacci.rs:60:27 [INFO] [stdout] | [INFO] [stdout] 60 | assert_eq!(1, fibonacci_memoized(2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fibonacci_memoized` in this scope [INFO] [stdout] --> src/algos/fibonacci.rs:61:27 [INFO] [stdout] | [INFO] [stdout] 61 | assert_eq!(1, fibonacci_memoized(3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fibonacci_memoized` in this scope [INFO] [stdout] --> src/algos/fibonacci.rs:62:27 [INFO] [stdout] | [INFO] [stdout] 62 | assert_eq!(2, fibonacci_memoized(4)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fibonacci_memoized` in this scope [INFO] [stdout] --> src/algos/fibonacci.rs:63:27 [INFO] [stdout] | [INFO] [stdout] 63 | assert_eq!(3, fibonacci_memoized(5)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fibonacci_memoized` in this scope [INFO] [stdout] --> src/algos/fibonacci.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | assert_eq!(5, fibonacci_memoized(6)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fibonacci_memoized` in this scope [INFO] [stdout] --> src/algos/fibonacci.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | assert_eq!(8, fibonacci_memoized(7)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fibonacci_memoized` in this scope [INFO] [stdout] --> src/algos/fibonacci.rs:66:28 [INFO] [stdout] | [INFO] [stdout] 66 | assert_eq!(13, fibonacci_memoized(8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hello-rust` (lib test) due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "9e819ecc6de60aa8fe1e290ae16c8763f2fba1688f93f7e28ae450dd70494b68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e819ecc6de60aa8fe1e290ae16c8763f2fba1688f93f7e28ae450dd70494b68", kill_on_drop: false }` [INFO] [stdout] 9e819ecc6de60aa8fe1e290ae16c8763f2fba1688f93f7e28ae450dd70494b68