[INFO] cloning repository https://github.com/Ttst49/smart_pointers [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ttst49/smart_pointers" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTtst49%2Fsmart_pointers", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTtst49%2Fsmart_pointers'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 603a661e7352a20c0af296e0a4df96c0069febc8 [INFO] checking Ttst49/smart_pointers against try#7df376b035b3d12ff0386ad8b45b76dbe020257b for pr-142712 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTtst49%2Fsmart_pointers" "/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/Ttst49/smart_pointers [INFO] finished tweaking git repo https://github.com/Ttst49/smart_pointers [INFO] tweaked toml for git repo https://github.com/Ttst49/smart_pointers written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Ttst49/smart_pointers on toolchain 7df376b035b3d12ff0386ad8b45b76dbe020257b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7df376b035b3d12ff0386ad8b45b76dbe020257b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Ttst49/smart_pointers 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" "+7df376b035b3d12ff0386ad8b45b76dbe020257b" "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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+7df376b035b3d12ff0386ad8b45b76dbe020257b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] af07eb960c82cab41f5f4320f1cb64f1c2d78bde0862e9834867b0c4b90b4caa [INFO] running `Command { std: "docker" "start" "-a" "af07eb960c82cab41f5f4320f1cb64f1c2d78bde0862e9834867b0c4b90b4caa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af07eb960c82cab41f5f4320f1cb64f1c2d78bde0862e9834867b0c4b90b4caa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af07eb960c82cab41f5f4320f1cb64f1c2d78bde0862e9834867b0c4b90b4caa", kill_on_drop: false }` [INFO] [stdout] af07eb960c82cab41f5f4320f1cb64f1c2d78bde0862e9834867b0c4b90b4caa [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+7df376b035b3d12ff0386ad8b45b76dbe020257b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5cd2a9050cac94bae5601ab3cceb611fc7ffaeb1f86109f782a4cdfd4021697c [INFO] running `Command { std: "docker" "start" "-a" "5cd2a9050cac94bae5601ab3cceb611fc7ffaeb1f86109f782a4cdfd4021697c", kill_on_drop: false }` [INFO] [stderr] Checking messager v0.1.0 (/opt/rustwide/workdir/messager) [INFO] [stderr] Checking smart_pointers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> messager/src/lib.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(messenger:&T,max:usize)->LimitTracker{ [INFO] [stdout] | ^^ --------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(messenger:&T,max:usize)->LimitTracker<'_, T>{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.sent_messages` as mutable, as it is behind a `&` reference [INFO] [stdout] --> messager/src/lib.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | self.sent_messages.push(String::from(message)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference in the `impl` method and the `trait` definition [INFO] [stdout] | [INFO] [stdout] 2 ~ fn send(&mut self,msg:&str); [INFO] [stdout] 3 | } [INFO] [stdout] ... [INFO] [stdout] 54 | impl Messenger for MessengerMock { [INFO] [stdout] 55 ~ fn send(&mut self, message: &str) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stderr] error: could not compile `messager` (lib test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | Cons(i64,Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 7 - Cons(i64,Rc), [INFO] [stdout] 7 + Cons((),()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | Cons(i64,Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 7 - Cons(i64,Rc), [INFO] [stdout] 7 + Cons((),()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5cd2a9050cac94bae5601ab3cceb611fc7ffaeb1f86109f782a4cdfd4021697c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cd2a9050cac94bae5601ab3cceb611fc7ffaeb1f86109f782a4cdfd4021697c", kill_on_drop: false }` [INFO] [stdout] 5cd2a9050cac94bae5601ab3cceb611fc7ffaeb1f86109f782a4cdfd4021697c