[INFO] cloning repository https://github.com/vanichitkara/rustOwnership [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vanichitkara/rustOwnership" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvanichitkara%2FrustOwnership", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvanichitkara%2FrustOwnership'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 583b6b735c30e99f53a495d962d94193d211053b [INFO] checking vanichitkara/rustOwnership against try#a0cd57eba5d417638d3351ba13fc414ad1a24bec for pr-134688 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvanichitkara%2FrustOwnership" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vanichitkara/rustOwnership on toolchain a0cd57eba5d417638d3351ba13fc414ad1a24bec [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a0cd57eba5d417638d3351ba13fc414ad1a24bec" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/vanichitkara/rustOwnership [INFO] finished tweaking git repo https://github.com/vanichitkara/rustOwnership [INFO] tweaked toml for git repo https://github.com/vanichitkara/rustOwnership written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/vanichitkara/rustOwnership 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" "+a0cd57eba5d417638d3351ba13fc414ad1a24bec" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+a0cd57eba5d417638d3351ba13fc414ad1a24bec" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cbc72fd5732857bc76cdb55550d05dada15516ddeb25d40e376427d500241952 [INFO] running `Command { std: "docker" "start" "-a" "cbc72fd5732857bc76cdb55550d05dada15516ddeb25d40e376427d500241952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cbc72fd5732857bc76cdb55550d05dada15516ddeb25d40e376427d500241952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbc72fd5732857bc76cdb55550d05dada15516ddeb25d40e376427d500241952", kill_on_drop: false }` [INFO] [stdout] cbc72fd5732857bc76cdb55550d05dada15516ddeb25d40e376427d500241952 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+a0cd57eba5d417638d3351ba13fc414ad1a24bec" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b29ba4cb8c69cfe9266eb1ab73687e6522a786d83c636279630581669f52324a [INFO] running `Command { std: "docker" "start" "-a" "b29ba4cb8c69cfe9266eb1ab73687e6522a786d83c636279630581669f52324a", kill_on_drop: false }` [INFO] [stderr] Checking rustOwnership v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | let mut result = myString + myString2; // two owned strings cannot be concatenated as the result variable is pointing to two differen... [INFO] [stdout] | ^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 53 | let mut result = myString + &myString2; // two owned strings cannot be concatenated as the result variable is pointing to two different data in heap [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `String` to `&str` [INFO] [stdout] --> src/main.rs:55:27 [INFO] [stdout] | [INFO] [stdout] 55 | let result2 = "Value" + String::from("something"); // &str(borrowed string) + owned string (cannot be concatenated as the left string... [INFO] [stdout] | ------- ^ ------------------------- String [INFO] [stdout] | | | [INFO] [stdout] | | `+` cannot be used to concatenate a `&str` with a `String` [INFO] [stdout] | &str [INFO] [stdout] | [INFO] [stdout] help: create an owned `String` on the left and add a borrow on the right [INFO] [stdout] | [INFO] [stdout] 55 | let result2 = "Value".to_owned() + &String::from("something"); // &str(borrowed string) + owned string (cannot be concatenated as the left string is not growable) [INFO] [stdout] | +++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `&str` to `&str` [INFO] [stdout] --> src/main.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 57 | let result3 = "Value" + "Something"; // &str(borrowed string) + &str(borrowed string) (cannot be concatenated as the left string is ... [INFO] [stdout] | ------- ^ ----------- &str [INFO] [stdout] | | | [INFO] [stdout] | | `+` cannot be used to concatenate two `&str` strings [INFO] [stdout] | &str [INFO] [stdout] | [INFO] [stdout] = note: string concatenation requires an owned `String` on the left [INFO] [stdout] help: create an owned `String` from a string reference [INFO] [stdout] | [INFO] [stdout] 57 | let result3 = "Value".to_owned() + "Something"; // &str(borrowed string) + &str(borrowed string) (cannot be concatenated as the left string is not growable) [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | let mut result = myString + myString2; // two owned strings cannot be concatenated as the result variable is pointing to two differen... [INFO] [stdout] | ^^^^^^^^^ expected `&str`, found `String` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 53 | let mut result = myString + &myString2; // two owned strings cannot be concatenated as the result variable is pointing to two different data in heap [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `String` to `&str` [INFO] [stdout] --> src/main.rs:55:27 [INFO] [stdout] | [INFO] [stdout] 55 | let result2 = "Value" + String::from("something"); // &str(borrowed string) + owned string (cannot be concatenated as the left string... [INFO] [stdout] | ------- ^ ------------------------- String [INFO] [stdout] | | | [INFO] [stdout] | | `+` cannot be used to concatenate a `&str` with a `String` [INFO] [stdout] | &str [INFO] [stdout] | [INFO] [stdout] help: create an owned `String` on the left and add a borrow on the right [INFO] [stdout] | [INFO] [stdout] 55 | let result2 = "Value".to_owned() + &String::from("something"); // &str(borrowed string) + owned string (cannot be concatenated as the left string is not growable) [INFO] [stdout] | +++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `&str` to `&str` [INFO] [stdout] --> src/main.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 57 | let result3 = "Value" + "Something"; // &str(borrowed string) + &str(borrowed string) (cannot be concatenated as the left string is ... [INFO] [stdout] | ------- ^ ----------- &str [INFO] [stdout] | | | [INFO] [stdout] | | `+` cannot be used to concatenate two `&str` strings [INFO] [stdout] | &str [INFO] [stdout] | [INFO] [stdout] = note: string concatenation requires an owned `String` on the left [INFO] [stdout] help: create an owned `String` from a string reference [INFO] [stdout] | [INFO] [stdout] 57 | let result3 = "Value".to_owned() + "Something"; // &str(borrowed string) + &str(borrowed string) (cannot be concatenated as the left string is not growable) [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0369. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0369. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustOwnership` (bin "rustOwnership") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rustOwnership` (bin "rustOwnership" test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "b29ba4cb8c69cfe9266eb1ab73687e6522a786d83c636279630581669f52324a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b29ba4cb8c69cfe9266eb1ab73687e6522a786d83c636279630581669f52324a", kill_on_drop: false }` [INFO] [stdout] b29ba4cb8c69cfe9266eb1ab73687e6522a786d83c636279630581669f52324a