[INFO] cloning repository https://github.com/leecobaby/study-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/leecobaby/study-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleecobaby%2Fstudy-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleecobaby%2Fstudy-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d7cb5e178d0d2d6794201af8b33d067ab635bef3
[INFO] testing leecobaby/study-rust against 1.95.0 for beta-1.96-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleecobaby%2Fstudy-rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/leecobaby/study-rust
[INFO] finished tweaking git repo https://github.com/leecobaby/study-rust
[INFO] tweaked toml for git repo https://github.com/leecobaby/study-rust written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/leecobaby/study-rust on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/leecobaby/study-rust 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" "+1.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: unused manifest key: profiles
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded rand v0.5.6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3e19aaccfdd58bd3f34e9fce626d5448c00454a6a5db4ab3cd5371a7c31f3e79
[INFO] running `Command { std: "docker" "start" "-a" "3e19aaccfdd58bd3f34e9fce626d5448c00454a6a5db4ab3cd5371a7c31f3e79", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3e19aaccfdd58bd3f34e9fce626d5448c00454a6a5db4ab3cd5371a7c31f3e79", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3e19aaccfdd58bd3f34e9fce626d5448c00454a6a5db4ab3cd5371a7c31f3e79", kill_on_drop: false }`
[INFO] [stdout] 3e19aaccfdd58bd3f34e9fce626d5448c00454a6a5db4ab3cd5371a7c31f3e79
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d26cb1a377c8a3403fc7f8dd1cfe4d8c461c5f6742995e76aec6be46a8ff5e64
[INFO] running `Command { std: "docker" "start" "-a" "d26cb1a377c8a3403fc7f8dd1cfe4d8c461c5f6742995e76aec6be46a8ff5e64", kill_on_drop: false }`
[INFO] [stderr] warning: unused manifest key: profiles
[INFO] [stderr]    Compiling rand_core v0.3.1
[INFO] [stderr]    Compiling rand v0.5.6
[INFO] [stderr]    Compiling study_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] error: could not compile `study_rust` (bin "11-8") due to 1 previous error
[INFO] [stdout] error[E0601]: `main` function not found in crate `11_8`
[INFO] [stdout]   --> src/bin/11-8.rs:19:2
[INFO] [stdout]    |
[INFO] [stdout] 19 | }
[INFO] [stdout]    |  ^ consider adding a `main` function to `src/bin/11-8.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `16_4`
[INFO] [stdout]  --> src/bin/16-4.rs:7:41
[INFO] [stdout]   |
[INFO] [stdout] 7 | // 也就是说，如果一个类型 T 实现了 Sync，那么 &T 就是 Send
[INFO] [stdout]   |                                                           ^ consider adding a `main` function to `src/bin/16-4.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `7_3`
[INFO] [stdout]   --> src/bin/7-3.rs:37:2
[INFO] [stdout]    |
[INFO] [stdout] 37 | }
[INFO] [stdout]    |  ^ consider adding a `main` function to `src/bin/7-3.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `HelloMacro` in this scope
[INFO] [stdout]   --> src/bin/19-5.rs:30:10
[INFO] [stdout]    |
[INFO] [stdout] 30 | #[derive(HelloMacro)]
[INFO] [stdout]    |          ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HelloMacro` is in scope, but it is only a trait, without a derive macro
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `11_6`
[INFO] [stdout]   --> src/bin/11-6.rs:34:2
[INFO] [stdout]    |
[INFO] [stdout] 34 | }
[INFO] [stdout]    |  ^ consider adding a `main` function to `src/bin/11-6.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_POINTS` is never used
[INFO] [stdout]  --> src/bin/3-1.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const MAX_POINTS: u32 = 100_000;
[INFO] [stdout]   |       ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `hello_macro` found for struct `Pancakes` in the current scope
[INFO] [stdout]   --> src/bin/19-5.rs:34:15
[INFO] [stdout]    |
[INFO] [stdout] 31 | struct Pancakes;
[INFO] [stdout]    | --------------- function or associated item `hello_macro` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 34 |     Pancakes::hello_macro();
[INFO] [stdout]    |               ^^^^^^^^^^^ function or associated item not found in `Pancakes`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `HelloMacro` defines an item `hello_macro`, perhaps you need to implement it
[INFO] [stdout]   --> src/bin/19-5.rs:26:1
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub trait HelloMacro {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `study_rust` (bin "7-3") due to 1 previous error
[INFO] [stdout] For more information about this error, try `rustc --explain E0599`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `study_rust` (bin "11-6") due to 1 previous error
[INFO] [stderr] error: could not compile `study_rust` (bin "19-5") due to 2 previous errors
[INFO] [stderr] error: could not compile `study_rust` (bin "16-4") due to 1 previous error
[INFO] [stdout] warning: fields `username`, `sign_in_count`, and `active` are never read
[INFO] [stdout]  --> src/bin/5-1.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | struct User {
[INFO] [stdout]   |        ---- fields in this struct
[INFO] [stdout] 6 |     username: String,
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 7 |     email: String,
[INFO] [stdout] 8 |     sign_in_count: u64,
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 9 |     active: bool,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Color` is never constructed
[INFO] [stdout]   --> src/bin/5-1.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | struct Color(i32, i32, i32);
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Point` is never constructed
[INFO] [stdout]   --> src/bin/5-1.rs:16:8
[INFO] [stdout]    |
[INFO] [stdout] 16 | struct Point(i32, i32, i32);
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UnitLikeStruct` is never constructed
[INFO] [stdout]   --> src/bin/5-1.rs:21:8
[INFO] [stdout]    |
[INFO] [stdout] 21 | struct UnitLikeStruct;
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `x`
[INFO] [stdout]   --> src/bin/13-4.rs:17:40
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let x = vec![1, 2, 3];
[INFO] [stdout]    |         - move occurs because `x` has type `Vec<i32>`, which does not implement the `Copy` trait
[INFO] [stdout] 14 |
[INFO] [stdout] 15 |     let equal_to_x = move |z| z == x;
[INFO] [stdout]    |                      --------      - variable moved due to use in closure
[INFO] [stdout]    |                      |
[INFO] [stdout]    |                      value moved into closure here
[INFO] [stdout] 16 |
[INFO] [stdout] 17 |     println!("can't use x here: {:?}", x);
[INFO] [stdout]    |                                        ^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value before moving it into the closure
[INFO] [stdout]    |
[INFO] [stdout] 15 ~     let value = x.clone();
[INFO] [stdout] 16 ~     let equal_to_x = move |z| z == value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `study_rust` (bin "13-4") due to 1 previous error
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `11_4`
[INFO] [stdout]   --> src/bin/11-4.rs:32:2
[INFO] [stdout]    |
[INFO] [stdout] 32 | }
[INFO] [stdout]    |  ^ consider adding a `main` function to `src/bin/11-4.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0428]: the name `generic` is defined multiple times
[INFO] [stdout]   --> src/bin/19-3.rs:52:1
[INFO] [stdout]    |
[INFO] [stdout] 47 | fn generic<T>(t: T) {
[INFO] [stdout]    | ------------------- previous definition of the value `generic` here
[INFO] [stdout] ...
[INFO] [stdout] 52 | fn generic<T: Sized>(t: T) {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `generic` redefined here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `generic` must be defined only once in the value namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0428]: the name `generic` is defined multiple times
[INFO] [stdout]   --> src/bin/19-3.rs:57:1
[INFO] [stdout]    |
[INFO] [stdout] 47 | fn generic<T>(t: T) {
[INFO] [stdout]    | ------------------- previous definition of the value `generic` here
[INFO] [stdout] ...
[INFO] [stdout] 57 | fn generic<T: ?Sized>(t: &T) {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `generic` redefined here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `generic` must be defined only once in the value namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `study_rust` (bin "11-4") due to 1 previous error
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/bin/19-3.rs:38:13
[INFO] [stdout]    |
[INFO] [stdout] 38 | fn bar() -> ! {
[INFO] [stdout]    |    ---      ^ expected `!`, found `()`
[INFO] [stdout]    |    |
[INFO] [stdout]    |    implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected type `!`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]   --> src/bin/19-3.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let f: Thunk = Box::new(|| println!("hi"));
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]   --> src/bin/19-3.rs:16:20
[INFO] [stdout]    |
[INFO] [stdout] 16 | fn takes_long_type(f: Thunk) {
[INFO] [stdout]    |                    ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> src/bin/19-3.rs:47:15
[INFO] [stdout]    |
[INFO] [stdout] 47 | fn generic<T>(t: T) {
[INFO] [stdout]    |               ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> src/bin/19-3.rs:52:22
[INFO] [stdout]    |
[INFO] [stdout] 52 | fn generic<T: Sized>(t: T) {
[INFO] [stdout]    |                      ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> src/bin/19-3.rs:57:23
[INFO] [stdout]    |
[INFO] [stdout] 57 | fn generic<T: ?Sized>(t: &T) {
[INFO] [stdout]    |                       ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0428.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]  --> src/bin/13-2.rs:7:29
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let n = example_closure(5);
[INFO] [stdout]   |             --------------- ^ expected `String`, found integer
[INFO] [stdout]   |             |
[INFO] [stdout]   |             arguments to this function are incorrect
[INFO] [stdout]   |
[INFO] [stdout] note: expected because the closure was earlier called with an argument of type `String`
[INFO] [stdout]  --> src/bin/13-2.rs:4:29
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let s = example_closure(String::from("hello"));
[INFO] [stdout]   |             --------------- ^^^^^^^^^^^^^^^^^^^^^ expected because this argument is of type `String`
[INFO] [stdout]   |             |
[INFO] [stdout]   |             in this closure call
[INFO] [stdout] note: closure parameter defined here
[INFO] [stdout]  --> src/bin/13-2.rs:2:28
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let example_closure = |x| x;
[INFO] [stdout]   |                            ^
[INFO] [stdout] help: try using a conversion method
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let n = example_closure(5.to_string());
[INFO] [stdout]   |                              ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `study_rust` (bin "19-3") due to 3 previous errors; 5 warnings emitted
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `study_rust` (bin "13-2") due to 1 previous error
[INFO] [stdout] warning: struct `Pair` is never constructed
[INFO] [stdout]    --> src/bin/10-4.rs:113:8
[INFO] [stdout]     |
[INFO] [stdout] 113 | struct Pair<T> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/bin/10-4.rs:119:8
[INFO] [stdout]     |
[INFO] [stdout] 118 | impl<T> Pair<T> {
[INFO] [stdout]     | --------------- associated function in this implementation
[INFO] [stdout] 119 |     fn new(x: T, y: T) -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `cmp_display` is never used
[INFO] [stdout]    --> src/bin/10-4.rs:126:8
[INFO] [stdout]     |
[INFO] [stdout] 125 | impl<T: Display + PartialOrd> Pair<T> {
[INFO] [stdout]     | ------------------------------------- method in this implementation
[INFO] [stdout] 126 |     fn cmp_display(&self) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `from` that must be used
[INFO] [stdout]   --> src/bin/10-4.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |         String::from("(Read more...)");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 13 |         let _ = String::from("(Read more...)");
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "d26cb1a377c8a3403fc7f8dd1cfe4d8c461c5f6742995e76aec6be46a8ff5e64", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d26cb1a377c8a3403fc7f8dd1cfe4d8c461c5f6742995e76aec6be46a8ff5e64", kill_on_drop: false }`
[INFO] [stdout] d26cb1a377c8a3403fc7f8dd1cfe4d8c461c5f6742995e76aec6be46a8ff5e64
