[INFO] cloning repository https://github.com/Acrylic125/rust-tutorial [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Acrylic125/rust-tutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAcrylic125%2Frust-tutorial", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAcrylic125%2Frust-tutorial'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1eabf3ff6d8c30a45ba1978e515c0a4fa458e16b [INFO] testing Acrylic125/rust-tutorial against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAcrylic125%2Frust-tutorial" "/workspace/builds/worker-20/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-20/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Acrylic125/rust-tutorial on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Acrylic125/rust-tutorial [INFO] finished tweaking git repo https://github.com/Acrylic125/rust-tutorial [INFO] tweaked toml for git repo https://github.com/Acrylic125/rust-tutorial written to /workspace/builds/worker-20/source/Cargo.toml [INFO] crate git repo https://github.com/Acrylic125/rust-tutorial already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b6234f213bf42f5226e99646bce982358ee0905b641876b623d58d7a944ea791 [INFO] running `Command { std: "docker" "start" "-a" "b6234f213bf42f5226e99646bce982358ee0905b641876b623d58d7a944ea791", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6234f213bf42f5226e99646bce982358ee0905b641876b623d58d7a944ea791", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6234f213bf42f5226e99646bce982358ee0905b641876b623d58d7a944ea791", kill_on_drop: false }` [INFO] [stdout] b6234f213bf42f5226e99646bce982358ee0905b641876b623d58d7a944ea791 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-20/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0944d54b308776b6cd666a5acdcf3e7f98867e3a16b461600fb3ea4b9e990e2f [INFO] running `Command { std: "docker" "start" "-a" "0944d54b308776b6cd666a5acdcf3e7f98867e3a16b461600fb3ea4b9e990e2f", kill_on_drop: false }` [INFO] [stderr] Compiling tutorial v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `cons_list` [INFO] [stdout] --> src/smart_pointers.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let cons_list: ConsList = [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cons_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `box_1` [INFO] [stdout] --> src/smart_pointers.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let box_1 = DropBox(1); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_box_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `box_2` [INFO] [stdout] --> src/smart_pointers.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | let box_2 = DropBox(2); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_box_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `box_4` [INFO] [stdout] --> src/smart_pointers.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let box_4 = DropBox(4); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_box_4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `box_5` [INFO] [stdout] --> src/smart_pointers.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let box_5 = DropBox(5); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_box_5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_reference` [INFO] [stdout] --> src/smart_pointers.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let new_reference = Rc::clone(&reference); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_reference` [INFO] [stdout] --> src/smart_pointers.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let new_reference = Rc::clone(&reference); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_reference` [INFO] [stdout] --> src/smart_pointers.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let new_reference = Rc::clone(&reference); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender_1` [INFO] [stdout] --> src/concurrency.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let sender_1 = thread::spawn(move || { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender_2` [INFO] [stdout] --> src/concurrency.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let sender_2 = thread::spawn(move || { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `wrapped.wrapped` does not live long enough [INFO] [stdout] --> src/smart_pointers.rs:109:28 [INFO] [stdout] | [INFO] [stdout] 109 | println!("wrapped {}", wrapped.wrapped.borrow()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] 110 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `wrapped.wrapped` dropped here while still borrowed [INFO] [stdout] | ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Ref<'_, i32>` [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `state_references` does not live long enough [INFO] [stdout] --> src/concurrency.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | println!("{}", state_references.lock().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] 72 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `state_references` dropped here while still borrowed [INFO] [stdout] | ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `MutexGuard` [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tutorial` due to 3 previous errors; 10 warnings emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0944d54b308776b6cd666a5acdcf3e7f98867e3a16b461600fb3ea4b9e990e2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0944d54b308776b6cd666a5acdcf3e7f98867e3a16b461600fb3ea4b9e990e2f", kill_on_drop: false }` [INFO] [stdout] 0944d54b308776b6cd666a5acdcf3e7f98867e3a16b461600fb3ea4b9e990e2f