[INFO] cloning repository https://github.com/zhang12295/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/zhang12295/rust_study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhang12295%2Frust_study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhang12295%2Frust_study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e6463d6098af0de0e8df696789bda370660f435c [INFO] testing zhang12295/rust_study against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhang12295%2Frust_study" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zhang12295/rust_study [INFO] finished tweaking git repo https://github.com/zhang12295/rust_study [INFO] tweaked toml for git repo https://github.com/zhang12295/rust_study written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zhang12295/rust_study on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zhang12295/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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 911138e6f296fd6035d01834d46bab4e42466db8ef844987d4853b182c7df700 [INFO] running `Command { std: "docker" "start" "-a" "911138e6f296fd6035d01834d46bab4e42466db8ef844987d4853b182c7df700", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "911138e6f296fd6035d01834d46bab4e42466db8ef844987d4853b182c7df700", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "911138e6f296fd6035d01834d46bab4e42466db8ef844987d4853b182c7df700", kill_on_drop: false }` [INFO] [stdout] 911138e6f296fd6035d01834d46bab4e42466db8ef844987d4853b182c7df700 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2e3579953140a37e0e57128df744291151eb1bdf3ef4e25bc0d6f8c7d875fb99 [INFO] running `Command { std: "docker" "start" "-a" "2e3579953140a37e0e57128df744291151eb1bdf3ef4e25bc0d6f8c7d875fb99", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling world_hello v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unknown lint: `unused_function` [INFO] [stdout] --> src/string_study.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #![allow(unused_function)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: did you mean: `unused_allocation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/string_study.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | greet(my_name); [INFO] [stdout] | ----- ^^^^^^^ expected `String`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/string_study.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn greet(name: String){ [INFO] [stdout] | ^^^^^ ------------ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 4 | greet(my_name.to_string()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `world_hello` (bin "world_hello") due to 1 previous error; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "2e3579953140a37e0e57128df744291151eb1bdf3ef4e25bc0d6f8c7d875fb99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e3579953140a37e0e57128df744291151eb1bdf3ef4e25bc0d6f8c7d875fb99", kill_on_drop: false }` [INFO] [stdout] 2e3579953140a37e0e57128df744291151eb1bdf3ef4e25bc0d6f8c7d875fb99