[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] checking Acrylic125/rust-tutorial against master#df20355fa9fa5e9fb89be4e4bfee8a643bb7a23e for pr-95474 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAcrylic125%2Frust-tutorial" "/workspace/builds/worker-43/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-43/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Acrylic125/rust-tutorial on toolchain df20355fa9fa5e9fb89be4e4bfee8a643bb7a23e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+df20355fa9fa5e9fb89be4e4bfee8a643bb7a23e" "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-43/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" "+df20355fa9fa5e9fb89be4e4bfee8a643bb7a23e" "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-43/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-43/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+df20355fa9fa5e9fb89be4e4bfee8a643bb7a23e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed1357fa1d51cb12f3f2fc98e31bfc61a199feb863f09080b8a4237112a83abf [INFO] running `Command { std: "docker" "start" "-a" "ed1357fa1d51cb12f3f2fc98e31bfc61a199feb863f09080b8a4237112a83abf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed1357fa1d51cb12f3f2fc98e31bfc61a199feb863f09080b8a4237112a83abf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed1357fa1d51cb12f3f2fc98e31bfc61a199feb863f09080b8a4237112a83abf", kill_on_drop: false }` [INFO] [stdout] ed1357fa1d51cb12f3f2fc98e31bfc61a199feb863f09080b8a4237112a83abf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-43/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-43/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+df20355fa9fa5e9fb89be4e4bfee8a643bb7a23e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fe41477bc7b43757d133082167f0071330afa4a0d35c482b69dab5bee6c4dd5a [INFO] running `Command { std: "docker" "start" "-a" "fe41477bc7b43757d133082167f0071330afa4a0d35c482b69dab5bee6c4dd5a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking 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] 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] [stdout] For more information about this error, try `rustc --explain E0597`. [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] [stderr] error: could not compile `tutorial` due to 3 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 2 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tutorial` due to 3 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fe41477bc7b43757d133082167f0071330afa4a0d35c482b69dab5bee6c4dd5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe41477bc7b43757d133082167f0071330afa4a0d35c482b69dab5bee6c4dd5a", kill_on_drop: false }` [INFO] [stdout] fe41477bc7b43757d133082167f0071330afa4a0d35c482b69dab5bee6c4dd5a