[INFO] cloning repository https://github.com/uamrws/rust_study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/uamrws/rust_study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuamrws%2Frust_study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuamrws%2Frust_study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b0fb1b240fb6e750c66e677e4529c4478c164de1 [INFO] checking uamrws/rust_study against try#fe84aa3583bb2681b5d0580316bde6d58ccfd6b5 for pr-154149-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuamrws%2Frust_study" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/uamrws/rust_study [INFO] finished tweaking git repo https://github.com/uamrws/rust_study [INFO] tweaked toml for git repo https://github.com/uamrws/rust_study written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/uamrws/rust_study on toolchain fe84aa3583bb2681b5d0580316bde6d58ccfd6b5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fe84aa3583bb2681b5d0580316bde6d58ccfd6b5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/uamrws/rust_study 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" "+fe84aa3583bb2681b5d0580316bde6d58ccfd6b5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+fe84aa3583bb2681b5d0580316bde6d58ccfd6b5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 394fa42d4ad7da440c91a645d96e813c542a3281b0ff2d1dbcc9ff2cc0ee731c [INFO] running `Command { std: "docker" "start" "-a" "394fa42d4ad7da440c91a645d96e813c542a3281b0ff2d1dbcc9ff2cc0ee731c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "394fa42d4ad7da440c91a645d96e813c542a3281b0ff2d1dbcc9ff2cc0ee731c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "394fa42d4ad7da440c91a645d96e813c542a3281b0ff2d1dbcc9ff2cc0ee731c", kill_on_drop: false }` [INFO] [stdout] 394fa42d4ad7da440c91a645d96e813c542a3281b0ff2d1dbcc9ff2cc0ee731c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+fe84aa3583bb2681b5d0580316bde6d58ccfd6b5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2363281cf267830b1a2b69014134ee87c0c6a310cd028087eb70fbba70620bb [INFO] running `Command { std: "docker" "start" "-a" "c2363281cf267830b1a2b69014134ee87c0c6a310cd028087eb70fbba70620bb", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling futures-core v0.3.24 [INFO] [stderr] Compiling futures-channel v0.3.24 [INFO] [stderr] Compiling futures-task v0.3.24 [INFO] [stderr] Compiling futures-util v0.3.24 [INFO] [stderr] Checking futures-sink v0.3.24 [INFO] [stderr] Checking futures-io v0.3.24 [INFO] [stderr] Checking once_cell v1.14.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling serde v1.0.144 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Checking itoa v1.0.3 [INFO] [stderr] Compiling lock_api v0.4.8 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling anyhow v1.0.64 [INFO] [stderr] Checking section_timer_future v0.1.0 (/opt/rustwide/workdir/section18_async/section_timer_future) [INFO] [stderr] Checking section16_raw_pointer v0.1.0 (/opt/rustwide/workdir/section16_raw_pointer) [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling tokio v1.21.0 [INFO] [stderr] Checking bytes v1.2.1 [INFO] [stderr] Checking section07_trait-object v0.1.0 (/opt/rustwide/workdir/section07_trait-object) [INFO] [stderr] Checking section10_lifetime v0.1.0 (/opt/rustwide/workdir/section10_lifetime) [INFO] [stderr] Checking section02_slice v0.1.0 (/opt/rustwide/workdir/section02_slice) [INFO] [stderr] Checking section14_threads v0.1.0 (/opt/rustwide/workdir/section14_threads) [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> section10_lifetime/src/bin/main04.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | fn temp<'a, 'b>(s: &'b mut List<'a>) -> &'b mut Manager<'b> { [INFO] [stdout] | -- -- lifetime `'b` defined here [INFO] [stdout] | | [INFO] [stdout] | lifetime `'a` defined here [INFO] [stdout] 30 | &mut s.manager [INFO] [stdout] | ^^^^^^^^^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b` [INFO] [stdout] | [INFO] [stdout] = help: consider adding the following bound: `'b: 'a` [INFO] [stdout] = note: requirement occurs because of a mutable reference to `Manager<'_>` [INFO] [stdout] = note: mutable references are invariant over their type parameter [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `section10_lifetime` (bin "main04") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> section14_threads/src/bin/temp.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | A.push_str("asd"); [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: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> section14_threads/src/bin/temp.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | println!("{}", A) [INFO] [stdout] | ^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `t` [INFO] [stdout] --> section07_trait-object/src/main.rs:72:22 [INFO] [stdout] | [INFO] [stdout] 70 | let t = Temp2 {}; [INFO] [stdout] | - move occurs because `t` has type `Temp2`, which does not implement the `Copy` trait [INFO] [stdout] 71 | t.temp(); [INFO] [stdout] | ------ `t` moved due to this method call [INFO] [stdout] 72 | println!("{:?}", t) [INFO] [stdout] | ^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: `Temp::temp` takes ownership of the receiver `self`, which moves `t` [INFO] [stdout] --> section07_trait-object/src/main.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | fn temp(self); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `section07_trait-object` (bin "section07_trait-object") due to 1 previous error [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> section14_threads/src/bin/temp.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | A.push_str("asd"); [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: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> section14_threads/src/bin/temp.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | println!("{}", A) [INFO] [stdout] | ^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c2363281cf267830b1a2b69014134ee87c0c6a310cd028087eb70fbba70620bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2363281cf267830b1a2b69014134ee87c0c6a310cd028087eb70fbba70620bb", kill_on_drop: false }` [INFO] [stdout] c2363281cf267830b1a2b69014134ee87c0c6a310cd028087eb70fbba70620bb