[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 master#e3e432d4d65a55e6db167598e96db2bcb163e316 for pr-140313 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvanichitkara%2FrustOwnership" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vanichitkara/rustOwnership on toolchain e3e432d4d65a55e6db167598e96db2bcb163e316 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e3e432d4d65a55e6db167598e96db2bcb163e316" "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-5-tc1/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" "+e3e432d4d65a55e6db167598e96db2bcb163e316" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+e3e432d4d65a55e6db167598e96db2bcb163e316" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2faf489f687251a4925c30a9c3de2d0c21403386c8cf1f5501915f94a33cd674 [INFO] running `Command { std: "docker" "start" "-a" "2faf489f687251a4925c30a9c3de2d0c21403386c8cf1f5501915f94a33cd674", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2faf489f687251a4925c30a9c3de2d0c21403386c8cf1f5501915f94a33cd674", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2faf489f687251a4925c30a9c3de2d0c21403386c8cf1f5501915f94a33cd674", kill_on_drop: false }` [INFO] [stdout] 2faf489f687251a4925c30a9c3de2d0c21403386c8cf1f5501915f94a33cd674 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+e3e432d4d65a55e6db167598e96db2bcb163e316" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a6250011dfaf54aedbedf01c47e2b016c25bafc7650a2a5e81a847e39724b09 [INFO] running `Command { std: "docker" "start" "-a" "1a6250011dfaf54aedbedf01c47e2b016c25bafc7650a2a5e81a847e39724b09", 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] 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] [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] [stderr] error: could not compile `rustOwnership` (bin "rustOwnership" test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "1a6250011dfaf54aedbedf01c47e2b016c25bafc7650a2a5e81a847e39724b09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a6250011dfaf54aedbedf01c47e2b016c25bafc7650a2a5e81a847e39724b09", kill_on_drop: false }` [INFO] [stdout] 1a6250011dfaf54aedbedf01c47e2b016c25bafc7650a2a5e81a847e39724b09