[INFO] cloning repository https://github.com/47degrees/rust-2023-11-09 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/47degrees/rust-2023-11-09" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F47degrees%2Frust-2023-11-09", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F47degrees%2Frust-2023-11-09'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 89c8c18245262b6fb6d3c6d639c66cf669e5adab [INFO] checking 47degrees/rust-2023-11-09/89c8c18245262b6fb6d3c6d639c66cf669e5adab against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F47degrees%2Frust-2023-11-09" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/47degrees/rust-2023-11-09 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/47degrees/rust-2023-11-09 [INFO] finished tweaking git repo https://github.com/47degrees/rust-2023-11-09 [INFO] tweaked toml for git repo https://github.com/47degrees/rust-2023-11-09 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/47degrees/rust-2023-11-09 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] da7784f08d66d45a7f6fe56150cede11f01133be38afbfaea7a47921d507a4a9 [INFO] running `Command { std: "docker" "start" "-a" "da7784f08d66d45a7f6fe56150cede11f01133be38afbfaea7a47921d507a4a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da7784f08d66d45a7f6fe56150cede11f01133be38afbfaea7a47921d507a4a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da7784f08d66d45a7f6fe56150cede11f01133be38afbfaea7a47921d507a4a9", kill_on_drop: false }` [INFO] [stdout] da7784f08d66d45a7f6fe56150cede11f01133be38afbfaea7a47921d507a4a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ebbeaa0f3fed7f993dd4478b16bc47091f3d435629623acacdaadf97e90ce53d [INFO] running `Command { std: "docker" "start" "-a" "ebbeaa0f3fed7f993dd4478b16bc47091f3d435629623acacdaadf97e90ce53d", kill_on_drop: false }` [INFO] [stderr] Checking concurrent-rc v0.1.0 (/opt/rustwide/workdir/concurrent-rc) [INFO] [stderr] Checking concurrent-arc-mutex v0.1.0 (/opt/rustwide/workdir/concurrent-arc-mutex) [INFO] [stderr] Checking sneaky-borrow-with-lifetime v0.1.0 (/opt/rustwide/workdir/sneaky-borrow-with-lifetime) [INFO] [stderr] Checking concurrent-rc-in-arc v0.1.0 (/opt/rustwide/workdir/concurrent-rc-in-arc) [INFO] [stderr] Checking ownership v0.1.0 (/opt/rustwide/workdir/ownership) [INFO] [stderr] Checking sneaky-borrow v0.1.0 (/opt/rustwide/workdir/sneaky-borrow) [INFO] [stderr] Checking concurrent-arc v0.1.0 (/opt/rustwide/workdir/concurrent-arc) [INFO] [stdout] error[E0597]: `inner_owner` does not live long enough [INFO] [stdout] --> sneaky-borrow-with-lifetime/src/main.rs:16:26 [INFO] [stdout] | [INFO] [stdout] 15 | let inner_owner = 10; [INFO] [stdout] | ----------- binding `inner_owner` declared here [INFO] [stdout] 16 | let mut inner_borrow = &inner_owner; [INFO] [stdout] | ^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 21 | } [INFO] [stdout] | - `inner_owner` dropped here while still borrowed [INFO] [stdout] 22 | println!("heh, heh = {}", outer_borrow); [INFO] [stdout] | ------------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] Checking double-free v0.1.0 (/opt/rustwide/workdir/double-free) [INFO] [stderr] error: could not compile `sneaky-borrow-with-lifetime` (bin "sneaky-borrow-with-lifetime") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: `Rc` cannot be shared between threads safely [INFO] [stdout] --> concurrent-rc-in-arc/src/main.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | let forked = spawn(move || [INFO] [stdout] | __________________-----_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 10 | | { [INFO] [stdout] 11 | | println!("first thread: {}", **copy); [INFO] [stdout] 12 | | } [INFO] [stdout] | |_________^ `Rc` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `Rc`, which is required by `{closure@concurrent-rc-in-arc/src/main.rs:9:21: 9:28}: Send` [INFO] [stdout] = note: required for `Arc>` to implement `Send` [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> concurrent-rc-in-arc/src/main.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | let forked = spawn(move || [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required by a bound in `spawn` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/thread/mod.rs:672:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Rc` cannot be sent between threads safely [INFO] [stdout] --> concurrent-rc/src/main.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | let forked = spawn(move || [INFO] [stdout] | ----- ^------ [INFO] [stdout] | | | [INFO] [stdout] | __________________|_____within this `{closure@concurrent-rc/src/main.rs:7:21: 7:28}` [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 8 | | { [INFO] [stdout] 9 | | println!("first thread: {}", *copy); [INFO] [stdout] 10 | | } [INFO] [stdout] | |_________^ `Rc` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `{closure@concurrent-rc/src/main.rs:7:21: 7:28}`, the trait `Send` is not implemented for `Rc`, which is required by `{closure@concurrent-rc/src/main.rs:7:21: 7:28}: Send` [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> concurrent-rc/src/main.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | let forked = spawn(move || [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required by a bound in `spawn` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/thread/mod.rs:672:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Rc` cannot be sent between threads safely [INFO] [stdout] --> concurrent-rc/src/main.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | let forked = spawn(move || [INFO] [stdout] | ----- ^------ [INFO] [stdout] | | | [INFO] [stdout] | __________________|_____within this `{closure@concurrent-rc/src/main.rs:7:21: 7:28}` [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 8 | | { [INFO] [stdout] 9 | | println!("first thread: {}", *copy); [INFO] [stdout] 10 | | } [INFO] [stdout] | |_________^ `Rc` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] = help: within `{closure@concurrent-rc/src/main.rs:7:21: 7:28}`, the trait `Send` is not implemented for `Rc`, which is required by `{closure@concurrent-rc/src/main.rs:7:21: 7:28}: Send` [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> concurrent-rc/src/main.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | let forked = spawn(move || [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required by a bound in `spawn` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/thread/mod.rs:672:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Rc` cannot be sent between threads safely [INFO] [stdout] --> concurrent-rc-in-arc/src/main.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | let forked = spawn(move || [INFO] [stdout] | __________________-----_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 10 | | { [INFO] [stdout] 11 | | println!("first thread: {}", **copy); [INFO] [stdout] 12 | | } [INFO] [stdout] | |_________^ `Rc` cannot be sent between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Send` is not implemented for `Rc`, which is required by `{closure@concurrent-rc-in-arc/src/main.rs:9:21: 9:28}: Send` [INFO] [stdout] = note: required for `Arc>` to implement `Send` [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> concurrent-rc-in-arc/src/main.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | let forked = spawn(move || [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required by a bound in `spawn` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/thread/mod.rs:672:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> sneaky-borrow/src/main.rs:5:2 [INFO] [stdout] | [INFO] [stdout] 2 | a: &mut &i32, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 3 | b: &mut &i32 [INFO] [stdout] | - let's call the lifetime of this reference `'2` [INFO] [stdout] 4 | ) { [INFO] [stdout] 5 | *b = *a; [INFO] [stdout] | ^^^^^^^ assignment requires that `'1` must outlive `'2` [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 1 ~ fn assign_through_borrow<'a>( [INFO] [stdout] 2 ~ a: &mut &'a i32, [INFO] [stdout] 3 ~ b: &mut &'a i32 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `concurrent-rc` (bin "concurrent-rc" test) due to 2 previous errors [INFO] [stderr] error: could not compile `concurrent-rc-in-arc` (bin "concurrent-rc-in-arc" test) due to 3 previous errors [INFO] [stderr] error: could not compile `concurrent-rc` (bin "concurrent-rc") due to 2 previous errors [INFO] [stderr] error: could not compile `sneaky-borrow` (bin "sneaky-borrow") due to 2 previous errors [INFO] [stdout] error[E0382]: use of moved value: `x` [INFO] [stdout] --> double-free/src/main.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 2 | let x = SomeStruct::default(); [INFO] [stdout] | - move occurs because `x` has type `SomeStruct`, which does not implement the `Copy` trait [INFO] [stdout] 3 | drop(x); [INFO] [stdout] | - value moved here [INFO] [stdout] 4 | drop(x); [INFO] [stdout] | ^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: if `SomeStruct` implemented `Clone`, you could clone the value [INFO] [stdout] --> double-free/src/main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 3 | drop(x); [INFO] [stdout] | - you could clone this value [INFO] [stdout] ... [INFO] [stdout] 8 | struct SomeStruct [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `double-free` (bin "double-free" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "ebbeaa0f3fed7f993dd4478b16bc47091f3d435629623acacdaadf97e90ce53d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebbeaa0f3fed7f993dd4478b16bc47091f3d435629623acacdaadf97e90ce53d", kill_on_drop: false }` [INFO] [stdout] ebbeaa0f3fed7f993dd4478b16bc47091f3d435629623acacdaadf97e90ce53d