[INFO] cloning repository https://github.com/zxcmc11/rust_greeting
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zxcmc11/rust_greeting" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzxcmc11%2Frust_greeting", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzxcmc11%2Frust_greeting'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 27296f68f564001ea61ab2b2638edf06d2a89629
[INFO] testing zxcmc11/rust_greeting against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzxcmc11%2Frust_greeting" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/zxcmc11/rust_greeting
[INFO] finished tweaking git repo https://github.com/zxcmc11/rust_greeting
[INFO] tweaked toml for git repo https://github.com/zxcmc11/rust_greeting written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/zxcmc11/rust_greeting 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/zxcmc11/rust_greeting 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] d25739923533e12636d524dccdbb331f05c6b2f624b072724a1e8e64cab8d15a
[INFO] running `Command { std: "docker" "start" "-a" "d25739923533e12636d524dccdbb331f05c6b2f624b072724a1e8e64cab8d15a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d25739923533e12636d524dccdbb331f05c6b2f624b072724a1e8e64cab8d15a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d25739923533e12636d524dccdbb331f05c6b2f624b072724a1e8e64cab8d15a", kill_on_drop: false }`
[INFO] [stdout] d25739923533e12636d524dccdbb331f05c6b2f624b072724a1e8e64cab8d15a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 07c4adbc9a973763788a005056f5e453ea5b52e418fd2fb497e766b7a68f5e58
[INFO] running `Command { std: "docker" "start" "-a" "07c4adbc9a973763788a005056f5e453ea5b52e418fd2fb497e766b7a68f5e58", kill_on_drop: false }`
[INFO] [stderr]    Compiling greeting v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::env::var`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::env::var;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::f64::consts::PI`
[INFO] [stdout]  --> src/main.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::f64::consts::PI;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::u128::MAX`
[INFO] [stdout]  --> src/main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::u128::MAX;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::read_to_string`
[INFO] [stdout]    --> src/main.rs:296:5
[INFO] [stdout]     |
[INFO] [stdout] 296 | use std::fs::read_to_string;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: `PokerSuit` doesn't implement `std::fmt::Display`
[INFO] [stdout]    --> src/main.rs:506:20
[INFO] [stdout]     |
[INFO] [stdout] 506 |     println!("{}", club);
[INFO] [stdout]     |               --   ^^^^ `PokerSuit` cannot be formatted with the default formatter
[INFO] [stdout]     |               |
[INFO] [stdout]     |               required by this formatting parameter
[INFO] [stdout]     |
[INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `PokerSuit`
[INFO] [stdout]    --> src/main.rs:497:5
[INFO] [stdout]     |
[INFO] [stdout] 497 |     enum PokerSuit {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^
[INFO] [stdout]     = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
[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] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `x` is never read
[INFO] [stdout]   --> src/main.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 26 |     x[0] = 4;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s3`
[INFO] [stdout]   --> src/main.rs:74:9
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let s3 = &s1[6..];
[INFO] [stdout]    |         ^^ help: if this is intentional, prefix it with an underscore: `_s3`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s5`
[INFO] [stdout]   --> src/main.rs:77:9
[INFO] [stdout]    |
[INFO] [stdout] 77 |     let s5 = &s1[..];
[INFO] [stdout]    |         ^^ help: if this is intentional, prefix it with an underscore: `_s5`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `book`
[INFO] [stdout]    --> src/main.rs:222:13
[INFO] [stdout]     |
[INFO] [stdout] 222 |         let book = NewBook::Papery {index: 103};
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_book`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `opt`
[INFO] [stdout]    --> src/main.rs:247:9
[INFO] [stdout]     |
[INFO] [stdout] 247 |     let opt = Option::Some("hello");
[INFO] [stdout]     |         ^^^ help: if this is intentional, prefix it with an underscore: `_opt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]    --> src/main.rs:258:9
[INFO] [stdout]     |
[INFO] [stdout] 258 |     let t = Some(64);
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout]    --> src/main.rs:285:25
[INFO] [stdout]     |
[INFO] [stdout] 285 |     if let Book::Papery(index) = my_book {  // 属性为 tuple 类型的，需要临时指定一个名称
[INFO] [stdout]     |                         ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/main.rs:326:9
[INFO] [stdout]     |
[INFO] [stdout] 326 |     let x: isize = 10086;
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]    --> src/main.rs:327:9
[INFO] [stdout]     |
[INFO] [stdout] 327 |     let a = 10.33;
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s2`
[INFO] [stdout]    --> src/main.rs:383:9
[INFO] [stdout]     |
[INFO] [stdout] 383 |     let s2 = &s1;
[INFO] [stdout]     |         ^^ help: if this is intentional, prefix it with an underscore: `_s2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s3`
[INFO] [stdout]    --> src/main.rs:384:9
[INFO] [stdout]     |
[INFO] [stdout] 384 |     let s3 = &s1;
[INFO] [stdout]     |         ^^ help: if this is intentional, prefix it with an underscore: `_s3`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s4`
[INFO] [stdout]    --> src/main.rs:387:9
[INFO] [stdout]     |
[INFO] [stdout] 387 |     let s4 = &mut s1;
[INFO] [stdout]     |         ^^ help: if this is intentional, prefix it with an underscore: `_s4`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s1`
[INFO] [stdout]    --> src/main.rs:396:9
[INFO] [stdout]     |
[INFO] [stdout] 396 |     let s1 = first_char(&s);
[INFO] [stdout]     |         ^^ help: if this is intentional, prefix it with an underscore: `_s1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `greeting` (bin "greeting") due to 1 previous error; 17 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "07c4adbc9a973763788a005056f5e453ea5b52e418fd2fb497e766b7a68f5e58", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "07c4adbc9a973763788a005056f5e453ea5b52e418fd2fb497e766b7a68f5e58", kill_on_drop: false }`
[INFO] [stdout] 07c4adbc9a973763788a005056f5e453ea5b52e418fd2fb497e766b7a68f5e58
