[INFO] cloning repository https://github.com/mingyuan-f/rust_lab [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mingyuan-f/rust_lab" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmingyuan-f%2Frust_lab", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmingyuan-f%2Frust_lab'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] be31e14a921cfc1a1bcb932e4208997010ed6909 [INFO] testing mingyuan-f/rust_lab against try#0abe69e6c16114311cc2700e972492e64d69c28f for pr-154065-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmingyuan-f%2Frust_lab" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mingyuan-f/rust_lab [INFO] finished tweaking git repo https://github.com/mingyuan-f/rust_lab [INFO] tweaked toml for git repo https://github.com/mingyuan-f/rust_lab written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mingyuan-f/rust_lab on toolchain 0abe69e6c16114311cc2700e972492e64d69c28f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mingyuan-f/rust_lab 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" "+0abe69e6c16114311cc2700e972492e64d69c28f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b229b8f2ec2cbfda3d9a00348e971ea51c14e6dd4741f20f5cc79dd62f31d3c7 [INFO] running `Command { std: "docker" "start" "-a" "b229b8f2ec2cbfda3d9a00348e971ea51c14e6dd4741f20f5cc79dd62f31d3c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b229b8f2ec2cbfda3d9a00348e971ea51c14e6dd4741f20f5cc79dd62f31d3c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b229b8f2ec2cbfda3d9a00348e971ea51c14e6dd4741f20f5cc79dd62f31d3c7", kill_on_drop: false }` [INFO] [stdout] b229b8f2ec2cbfda3d9a00348e971ea51c14e6dd4741f20f5cc79dd62f31d3c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 716d2e2f0b4affcd5c9a8383a3b4e6c11cd498a1c8a6ba5a25b842ff4cf83697 [INFO] running `Command { std: "docker" "start" "-a" "716d2e2f0b4affcd5c9a8383a3b4e6c11cd498a1c8a6ba5a25b842ff4cf83697", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling rust_lab v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `change` is never used [INFO] [stdout] --> src/main.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | trait MyTrait: Debug { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 13 | fn change(&mut self, new_value: usize); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.90s [INFO] running `Command { std: "docker" "inspect" "716d2e2f0b4affcd5c9a8383a3b4e6c11cd498a1c8a6ba5a25b842ff4cf83697", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "716d2e2f0b4affcd5c9a8383a3b4e6c11cd498a1c8a6ba5a25b842ff4cf83697", kill_on_drop: false }` [INFO] [stdout] 716d2e2f0b4affcd5c9a8383a3b4e6c11cd498a1c8a6ba5a25b842ff4cf83697 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1bff9c69892124ecc5e67a4d30a7a61642637e81cb4a9962365571958afa1562 [INFO] running `Command { std: "docker" "start" "-a" "1bff9c69892124ecc5e67a4d30a7a61642637e81cb4a9962365571958afa1562", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling permutation v0.4.1 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling soa_derive_internal v0.13.4 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling soa_derive v0.13.0 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Compiling rust_lab v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait `MyInto` is never used [INFO] [stdout] --> examples/traits.rs:58:7 [INFO] [stdout] | [INFO] [stdout] 58 | trait MyInto { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aa` [INFO] [stdout] --> examples/ownership.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let aa = a.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_aa` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `a` is never read [INFO] [stdout] --> examples/ownership.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct A { [INFO] [stdout] | - field in this struct [INFO] [stdout] 3 | a: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `A` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> examples/soa_derive_manual.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | fn slice_mut(&mut self, range: Range) -> RigidBodySliceMut { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 34 | fn slice_mut(&mut self, range: Range) -> RigidBodySliceMut<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/pin.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut test1 = Test::new("test1"); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/pin.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut test2 = Test::new("test2"); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> examples/trait.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let a: Vec> = vec![Box::new(D {})]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `change` is never used [INFO] [stdout] --> src/main.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | trait MyTrait: Debug { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 13 | fn change(&mut self, new_value: usize); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `change` is never used [INFO] [stdout] --> src/main.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | trait MyTrait: Debug { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 13 | fn change(&mut self, new_value: usize); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> examples/static_value.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | println!("{}", <(dyn MyTrait) as Value>::get_mut()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - println!("{}", <(dyn MyTrait) as Value>::get_mut()); [INFO] [stdout] 46 + println!("{}", ::get_mut()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_lab` (example "static_value") due to 4 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: struct `MyStruct` is never constructed [INFO] [stdout] --> examples/static_value.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | struct MyStruct; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> examples/static_value.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | unsafe { &mut V } [INFO] [stdout] | ^^^^^^ mutable reference to mutable static [INFO] [stdout] | [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] = note: for more information, see [INFO] [stdout] = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 8 | unsafe { &raw mut V } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> examples/static_value.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | unsafe { &mut V } [INFO] [stdout] | ^^^^^^ mutable reference to mutable static [INFO] [stdout] | [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] = note: for more information, see [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 15 | unsafe { &raw mut V } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> examples/static_value.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | unsafe { &mut V } [INFO] [stdout] | ^^^^^^ mutable reference to mutable static [INFO] [stdout] | [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] = note: for more information, see [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 24 | unsafe { &raw mut V } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> examples/static_value.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe { &mut V } [INFO] [stdout] | ^^^^^^ mutable reference to mutable static [INFO] [stdout] | [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] = note: for more information, see [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 33 | unsafe { &raw mut V } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> examples/trait_use.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let a: &dyn TA = &s; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fa` is never used [INFO] [stdout] --> examples/trait_use.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | trait TA { [INFO] [stdout] | -- method in this trait [INFO] [stdout] 2 | fn fa(&self) { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TB` is never used [INFO] [stdout] --> examples/trait_use.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | trait TB { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> examples/iterator.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 47 | struct Vector2 { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 48 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 49 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Vector2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1bff9c69892124ecc5e67a4d30a7a61642637e81cb4a9962365571958afa1562", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bff9c69892124ecc5e67a4d30a7a61642637e81cb4a9962365571958afa1562", kill_on_drop: false }` [INFO] [stdout] 1bff9c69892124ecc5e67a4d30a7a61642637e81cb4a9962365571958afa1562