[INFO] cloning repository https://github.com/Gaoey/xrust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Gaoey/xrust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGaoey%2Fxrust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGaoey%2Fxrust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c4caba74fd7cb93d948d643f70ff51740a07a23b
[INFO] checking Gaoey/xrust against 49a6044d37d694890450f52ceaceb66277a36b1e for pr-161154
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGaoey%2Fxrust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Gaoey/xrust
[INFO] finished tweaking git repo https://github.com/Gaoey/xrust
[INFO] tweaked toml for git repo https://github.com/Gaoey/xrust written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Gaoey/xrust on toolchain 49a6044d37d694890450f52ceaceb66277a36b1e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Gaoey/xrust 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" "+49a6044d37d694890450f52ceaceb66277a36b1e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded futures v0.3.21
[INFO] [stderr]   Downloaded futures-macro v0.3.21
[INFO] [stderr]   Downloaded proc-macro2 v1.0.42
[INFO] [stderr]   Downloaded futures-io v0.3.21
[INFO] [stderr]   Downloaded unicode-ident v1.0.2
[INFO] [stderr]   Downloaded futures-executor v0.3.21
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 923f40ea6de6f9daea4d1653b036b2f10269c4e161623794c858623bb0cddc90
[INFO] running `Command { std: "docker" "start" "923f40ea6de6f9daea4d1653b036b2f10269c4e161623794c858623bb0cddc90", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "923f40ea6de6f9daea4d1653b036b2f10269c4e161623794c858623bb0cddc90", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "923f40ea6de6f9daea4d1653b036b2f10269c4e161623794c858623bb0cddc90" "/opt/rustwide/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "923f40ea6de6f9daea4d1653b036b2f10269c4e161623794c858623bb0cddc90", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "923f40ea6de6f9daea4d1653b036b2f10269c4e161623794c858623bb0cddc90" "/opt/rustwide/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.42
[INFO] [stderr]    Compiling libc v0.2.126
[INFO] [stderr]    Compiling quote v1.0.20
[INFO] [stderr]    Compiling unicode-ident v1.0.2
[INFO] [stderr]    Compiling syn v1.0.98
[INFO] [stderr]    Compiling futures-core v0.3.21
[INFO] [stderr]    Compiling slab v0.4.7
[INFO] [stderr]    Compiling futures-task v0.3.21
[INFO] [stderr]    Compiling futures-channel v0.3.21
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]     Checking pin-project-lite v0.2.9
[INFO] [stderr]     Checking futures-sink v0.3.21
[INFO] [stderr]    Compiling futures-util v0.3.21
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]     Checking futures-io v0.3.21
[INFO] [stderr]    Compiling tokio v1.20.1
[INFO] [stderr]     Checking once_cell v1.13.0
[INFO] [stderr]     Checking getrandom v0.2.7
[INFO] [stderr]     Checking num_cpus v1.13.1
[INFO] [stderr]     Checking time v0.1.44
[INFO] [stderr]     Checking rand_core v0.6.3
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking chrono v0.4.20
[INFO] [stderr]    Compiling futures-macro v0.3.21
[INFO] [stderr]    Compiling tokio-macros v1.8.0
[INFO] [stderr]     Checking futures-executor v0.3.21
[INFO] [stderr]     Checking futures v0.3.21
[INFO] [stderr]     Checking xrust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: function `iteration_call_fn` is never used
[INFO] [stdout]  --> src/concepts/asynchronous/repeating_call_api.rs:9:10
[INFO] [stdout]   |
[INFO] [stdout] 9 | async fn iteration_call_fn<T, U, F, I, Fut>(
[INFO] [stdout]   |          ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `call_api_by_vec` is never used
[INFO] [stdout]   --> src/concepts/asynchronous/repeating_call_api.rs:38:10
[INFO] [stdout]    |
[INFO] [stdout] 38 | async fn call_api_by_vec(pages: Vec<i32>) -> Result<Vec<usize>, Error> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `repeating_call_api` is never used
[INFO] [stdout]   --> src/concepts/asynchronous/repeating_call_api.rs:59:14
[INFO] [stdout]    |
[INFO] [stdout] 59 | pub async fn repeating_call_api() {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_page` is never used
[INFO] [stdout]   --> src/concepts/asynchronous/sample_api.rs:14:14
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub async fn get_page(i: usize) -> Vec<usize> {
[INFO] [stdout]    |              ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_page_random_failed` is never used
[INFO] [stdout]   --> src/concepts/asynchronous/sample_api.rs:33:14
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub async fn get_page_random_failed(i: usize) -> Result<Vec<usize>, Error> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `simple_thread` is never used
[INFO] [stdout]  --> src/concepts/asynchronous/thread.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub fn simple_thread() {
[INFO] [stdout]   |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Messenger` is never used
[INFO] [stdout]   --> src/concepts/smart_pointers/interior_mutability_pattern.rs:19:11
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub trait Messenger {
[INFO] [stdout]    |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LimitTracker` is never constructed
[INFO] [stdout]   --> src/concepts/smart_pointers/interior_mutability_pattern.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct LimitTracker<'a, T: Messenger> {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `set_value` are never used
[INFO] [stdout]   --> src/concepts/smart_pointers/interior_mutability_pattern.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout] 29 | / impl<'a, T> LimitTracker<'a, T>
[INFO] [stdout] 30 | | where
[INFO] [stdout] 31 | |     T: Messenger,
[INFO] [stdout]    | |_________________- associated items in this implementation
[INFO] [stdout] 32 |   {
[INFO] [stdout] 33 |       pub fn new(messenger: &'a T, max: usize) -> LimitTracker<'a, T> {
[INFO] [stdout]    |              ^^^
[INFO] [stdout] ...
[INFO] [stdout] 41 |       pub fn set_value(&mut self, value: usize) {
[INFO] [stdout]    |              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `List` is never used
[INFO] [stdout]   --> src/concepts/smart_pointers/interior_mutability_pattern.rs:59:10
[INFO] [stdout]    |
[INFO] [stdout] 59 | pub enum List<T> {
[INFO] [stdout]    |          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `List` is never used
[INFO] [stdout]  --> src/concepts/smart_pointers/list.rs:2:10
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub enum List<T> {
[INFO] [stdout]   |          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `List` is never used
[INFO] [stdout]  --> src/concepts/smart_pointers/reference_count.rs:8:10
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub enum List<T> {
[INFO] [stdout]   |          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MyBox` is never constructed
[INFO] [stdout]  --> src/concepts/smart_pointers/xderef.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct MyBox<T>(T);
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]  --> src/concepts/smart_pointers/xderef.rs:7:19
[INFO] [stdout]   |
[INFO] [stdout] 6 | impl<T> MyBox<T> {
[INFO] [stdout]   | ---------------- associated function in this implementation
[INFO] [stdout] 7 |     pub(crate) fn new(x: T) -> MyBox<T> {
[INFO] [stdout]   |                   ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Error` is never constructed
[INFO] [stdout]  --> src/models/error.rs:3:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub struct Error {
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from` is never used
[INFO] [stdout]  --> src/models/error.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | impl Error {
[INFO] [stdout]   | ---------- associated function in this implementation
[INFO] [stdout] 9 |     pub fn from(msg: &str) -> Self {
[INFO] [stdout]   |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Shape` is never used
[INFO] [stdout]  --> src/patterns/factory/factory.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub trait Shape {
[INFO] [stdout]   |           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ShapeType` is never used
[INFO] [stdout]  --> src/patterns/factory/factory.rs:5:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub enum ShapeType {
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rectangle` is never constructed
[INFO] [stdout]   --> src/patterns/factory/factory.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct Rectangle {}
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Circle` is never constructed
[INFO] [stdout]   --> src/patterns/factory/factory.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub struct Circle {}
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ShapeFactory` is never constructed
[INFO] [stdout]   --> src/patterns/factory/factory.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub struct ShapeFactory;
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new_shape` is never used
[INFO] [stdout]   --> src/patterns/factory/factory.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 27 | impl ShapeFactory {
[INFO] [stdout]    | ----------------- associated function in this implementation
[INFO] [stdout] 28 |     pub fn new_shape(s: &ShapeType) -> Box<dyn Shape> {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `People` is never constructed
[INFO] [stdout]  --> src/techniques/type_conversion/type_conversion.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub struct People<'a> {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `map_employee_to_people` is never used
[INFO] [stdout]   --> src/techniques/type_conversion/type_conversion.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub fn map_employee_to_people(emp: Employee) -> Result<People, String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/concepts/smart_pointers/interior_mutability_pattern.rs:60:10
[INFO] [stdout]    |
[INFO] [stdout] 60 |     Cons(Rc<RefCell<T>>, Rc<List<T>>),
[INFO] [stdout]    |     ---- ^^^^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 60 -     Cons(Rc<RefCell<T>>, Rc<List<T>>),
[INFO] [stdout] 60 +     Cons((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `1` is never read
[INFO] [stdout]  --> src/concepts/smart_pointers/list.rs:3:13
[INFO] [stdout]   |
[INFO] [stdout] 3 |     Cons(T, Box<List<T>>),
[INFO] [stdout]   |     ----    ^^^^^^^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]   |
[INFO] [stdout] 3 -     Cons(T, Box<List<T>>),
[INFO] [stdout] 3 +     Cons(T, ()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `1` is never read
[INFO] [stdout]  --> src/concepts/smart_pointers/reference_count.rs:9:13
[INFO] [stdout]   |
[INFO] [stdout] 9 |     Cons(T, Rc<List<T>>),
[INFO] [stdout]   |     ----    ^^^^^^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]   |
[INFO] [stdout] 9 -     Cons(T, Rc<List<T>>),
[INFO] [stdout] 9 +     Cons(T, ()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.63s
[INFO] running `Command { std: "docker" "inspect" "923f40ea6de6f9daea4d1653b036b2f10269c4e161623794c858623bb0cddc90", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "923f40ea6de6f9daea4d1653b036b2f10269c4e161623794c858623bb0cddc90", kill_on_drop: false }`
[INFO] [stdout] 923f40ea6de6f9daea4d1653b036b2f10269c4e161623794c858623bb0cddc90
