[INFO] cloning repository https://github.com/HashirAKB/Rust-Hello-World [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HashirAKB/Rust-Hello-World" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHashirAKB%2FRust-Hello-World", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHashirAKB%2FRust-Hello-World'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 39d3d74b298f4502ea5e52edbeaffcc456945e75 [INFO] testing HashirAKB/Rust-Hello-World/39d3d74b298f4502ea5e52edbeaffcc456945e75 against master#8c0ec05f7dc9ef185eea9f36c5638e74e43935bf for pr-130285 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHashirAKB%2FRust-Hello-World" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HashirAKB/Rust-Hello-World on toolchain 8c0ec05f7dc9ef185eea9f36c5638e74e43935bf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c0ec05f7dc9ef185eea9f36c5638e74e43935bf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HashirAKB/Rust-Hello-World [INFO] finished tweaking git repo https://github.com/HashirAKB/Rust-Hello-World [INFO] tweaked toml for git repo https://github.com/HashirAKB/Rust-Hello-World written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/HashirAKB/Rust-Hello-World 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" "+8c0ec05f7dc9ef185eea9f36c5638e74e43935bf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+8c0ec05f7dc9ef185eea9f36c5638e74e43935bf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1e862bff7fcbc56d59aaa2d2cffee7daf3568b5663d5909ea6dec252e41cf70c [INFO] running `Command { std: "docker" "start" "-a" "1e862bff7fcbc56d59aaa2d2cffee7daf3568b5663d5909ea6dec252e41cf70c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1e862bff7fcbc56d59aaa2d2cffee7daf3568b5663d5909ea6dec252e41cf70c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e862bff7fcbc56d59aaa2d2cffee7daf3568b5663d5909ea6dec252e41cf70c", kill_on_drop: false }` [INFO] [stdout] 1e862bff7fcbc56d59aaa2d2cffee7daf3568b5663d5909ea6dec252e41cf70c [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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+8c0ec05f7dc9ef185eea9f36c5638e74e43935bf" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f5bd3e41feab249b2858cda47540c1ecda9b6e0dac44203532fa14ac88c045b0 [INFO] running `Command { std: "docker" "start" "-a" "f5bd3e41feab249b2858cda47540c1ecda9b6e0dac44203532fa14ac88c045b0", kill_on_drop: false }` [INFO] [stderr] Compiling rust-hello-world v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:313:49 [INFO] [stdout] | [INFO] [stdout] 313 | let mut my_backpack = Backpack { snack: None }; [INFO] [stdout] | ^^^^ expected `Option<&str>`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: `std::option::Option<_>` and `main::Option<&str>` have similar names, but are actually distinct types [INFO] [stdout] note: `std::option::Option<_>` is defined in crate `core` [INFO] [stdout] --> /rustc/8c0ec05f7dc9ef185eea9f36c5638e74e43935bf/library/core/src/option.rs:571:1 [INFO] [stdout] note: `main::Option<&str>` is defined in the current crate [INFO] [stdout] --> src/main.rs:460:5 [INFO] [stdout] | [INFO] [stdout] 460 | pub enum Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:315:29 [INFO] [stdout] | [INFO] [stdout] 315 | my_backpack.snack = Some(&apple); [INFO] [stdout] | ----------------- ^^^^^^^^^^^^ expected `Option<&str>`, found `Option<&String>` [INFO] [stdout] | | [INFO] [stdout] | expected due to the type of this binding [INFO] [stdout] | [INFO] [stdout] = note: `std::option::Option<&String>` and `main::Option<&str>` have similar names, but are actually distinct types [INFO] [stdout] note: `std::option::Option<&String>` is defined in crate `core` [INFO] [stdout] --> /rustc/8c0ec05f7dc9ef185eea9f36c5638e74e43935bf/library/core/src/option.rs:571:1 [INFO] [stdout] note: `main::Option<&str>` is defined in the current crate [INFO] [stdout] --> src/main.rs:460:5 [INFO] [stdout] | [INFO] [stdout] 460 | pub enum Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `main::Option<&str>` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:316:39 [INFO] [stdout] | [INFO] [stdout] 316 | println!("My snack is: {:?}", my_backpack.snack); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `main::Option<&str>` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `main::Option<&str>` [INFO] [stdout] = note: add `#[derive(Debug)]` to `main::Option<&str>` or manually `impl Debug for main::Option<&str>` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `main::Option<&str>` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 460 + #[derive(Debug)] [INFO] [stdout] 461 | pub enum Option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:468:24 [INFO] [stdout] | [INFO] [stdout] 465 | fn find_first_a(s: String) -> Option { [INFO] [stdout] | ----------- expected `main::Option` because of return type [INFO] [stdout] ... [INFO] [stdout] 468 | return Some(index as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `main::Option`, found `std::option::Option` [INFO] [stdout] | [INFO] [stdout] = note: `std::option::Option` and `main::Option` have similar names, but are actually distinct types [INFO] [stdout] note: `std::option::Option` is defined in crate `core` [INFO] [stdout] --> /rustc/8c0ec05f7dc9ef185eea9f36c5638e74e43935bf/library/core/src/option.rs:571:1 [INFO] [stdout] note: `main::Option` is defined in the current crate [INFO] [stdout] --> src/main.rs:460:5 [INFO] [stdout] | [INFO] [stdout] 460 | pub enum Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:477:13 [INFO] [stdout] | [INFO] [stdout] 476 | match find_first_a(my_string) { [INFO] [stdout] | ----------------------- this expression has type `main::Option` [INFO] [stdout] 477 | Some(index) => println!("The letter 'a' is found at index: {}", index), [INFO] [stdout] | ^^^^^^^^^^^ expected `Option`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: `std::option::Option<_>` and `main::Option` have similar names, but are actually distinct types [INFO] [stdout] note: `std::option::Option<_>` is defined in crate `core` [INFO] [stdout] --> /rustc/8c0ec05f7dc9ef185eea9f36c5638e74e43935bf/library/core/src/option.rs:571:1 [INFO] [stdout] note: `main::Option` is defined in the current crate [INFO] [stdout] --> src/main.rs:460:5 [INFO] [stdout] | [INFO] [stdout] 460 | pub enum Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:478:13 [INFO] [stdout] | [INFO] [stdout] 476 | match find_first_a(my_string) { [INFO] [stdout] | ----------------------- this expression has type `main::Option` [INFO] [stdout] 477 | Some(index) => println!("The letter 'a' is found at index: {}", index), [INFO] [stdout] 478 | None => println!("The letter 'a' is not found in the string."), [INFO] [stdout] | ^^^^ expected `Option`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: `std::option::Option<_>` and `main::Option` have similar names, but are actually distinct types [INFO] [stdout] note: `std::option::Option<_>` is defined in crate `core` [INFO] [stdout] --> /rustc/8c0ec05f7dc9ef185eea9f36c5638e74e43935bf/library/core/src/option.rs:571:1 [INFO] [stdout] note: `main::Option` is defined in the current crate [INFO] [stdout] --> src/main.rs:460:5 [INFO] [stdout] | [INFO] [stdout] 460 | pub enum Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-hello-world` (bin "rust-hello-world") due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "f5bd3e41feab249b2858cda47540c1ecda9b6e0dac44203532fa14ac88c045b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5bd3e41feab249b2858cda47540c1ecda9b6e0dac44203532fa14ac88c045b0", kill_on_drop: false }` [INFO] [stdout] f5bd3e41feab249b2858cda47540c1ecda9b6e0dac44203532fa14ac88c045b0