[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 master#1f7f8ea0721a3b1eb73e6c6d25cccb371434b320 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-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mingyuan-f/rust_lab on toolchain 1f7f8ea0721a3b1eb73e6c6d25cccb371434b320 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "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" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded soa_derive v0.13.0 [INFO] [stderr] Downloaded permutation v0.4.1 [INFO] [stderr] Downloaded soa_derive_internal v0.13.4 [INFO] [stderr] Downloaded serde_derive v1.0.217 [INFO] [stderr] Downloaded serde_json v1.0.137 [INFO] [stderr] Downloaded syn v2.0.96 [INFO] [stderr] Downloaded serde v1.0.217 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] caef19f8013e7ecda9810e76eac8114bb7979f8a3229bee71f488bc8b1d18fd2 [INFO] running `Command { std: "docker" "start" "-a" "caef19f8013e7ecda9810e76eac8114bb7979f8a3229bee71f488bc8b1d18fd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "caef19f8013e7ecda9810e76eac8114bb7979f8a3229bee71f488bc8b1d18fd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "caef19f8013e7ecda9810e76eac8114bb7979f8a3229bee71f488bc8b1d18fd2", kill_on_drop: false }` [INFO] [stdout] caef19f8013e7ecda9810e76eac8114bb7979f8a3229bee71f488bc8b1d18fd2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 215c85a008d8420ad87bf1d25b1e1c8a6e45ef950e691c43bb2060f81bfecd64 [INFO] running `Command { std: "docker" "start" "-a" "215c85a008d8420ad87bf1d25b1e1c8a6e45ef950e691c43bb2060f81bfecd64", 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 17.78s [INFO] running `Command { std: "docker" "inspect" "215c85a008d8420ad87bf1d25b1e1c8a6e45ef950e691c43bb2060f81bfecd64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "215c85a008d8420ad87bf1d25b1e1c8a6e45ef950e691c43bb2060f81bfecd64", kill_on_drop: false }` [INFO] [stdout] 215c85a008d8420ad87bf1d25b1e1c8a6e45ef950e691c43bb2060f81bfecd64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4bc5aa112428fb3234a9b903e3a62b091b7ad4db5fa29f56151444a65f0ad8a4 [INFO] running `Command { std: "docker" "start" "-a" "4bc5aa112428fb3234a9b903e3a62b091b7ad4db5fa29f56151444a65f0ad8a4", 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: 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] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/reference_rule.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut v = vec![10, 9, 8]; [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: unused variable: `r1` [INFO] [stdout] --> examples/reference_rule.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let r1 = &s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> examples/reference_rule.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let r2 = &s; // no problem [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r3` [INFO] [stdout] --> examples/reference_rule.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let r3 = &mut s; // BIG PROBLEM [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> examples/reference_rule.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [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] [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] [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: 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: field `value` is never read [INFO] [stdout] --> examples/thread.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | struct Value { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 8 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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: field `ref_value` is never read [INFO] [stdout] --> examples/thread.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct S<'v> { [INFO] [stdout] | - field in this struct [INFO] [stdout] 15 | value: Value, [INFO] [stdout] 16 | ref_value: &'v Value, [INFO] [stdout] | ^^^^^^^^^ [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: feature `negative_impls` is declared but not used [INFO] [stdout] --> examples/thread.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(negative_impls)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4bc5aa112428fb3234a9b903e3a62b091b7ad4db5fa29f56151444a65f0ad8a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bc5aa112428fb3234a9b903e3a62b091b7ad4db5fa29f56151444a65f0ad8a4", kill_on_drop: false }` [INFO] [stdout] 4bc5aa112428fb3234a9b903e3a62b091b7ad4db5fa29f56151444a65f0ad8a4