[INFO] cloning repository https://github.com/chengxiaohei/CCRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chengxiaohei/CCRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchengxiaohei%2FCCRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchengxiaohei%2FCCRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b25af0769c8dd13b35dc9cbf57a15145f4b555dd [INFO] checking chengxiaohei/CCRust against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchengxiaohei%2FCCRust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/chengxiaohei/CCRust [INFO] finished tweaking git repo https://github.com/chengxiaohei/CCRust [INFO] tweaked toml for git repo https://github.com/chengxiaohei/CCRust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chengxiaohei/CCRust on toolchain 5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/chengxiaohei/CCRust 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" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b1dda09ee3e858bb2532bb1b7676fa66b2eb4f11a554cb07fb4099c81af12601 [INFO] running `Command { std: "docker" "start" "-a" "b1dda09ee3e858bb2532bb1b7676fa66b2eb4f11a554cb07fb4099c81af12601", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1dda09ee3e858bb2532bb1b7676fa66b2eb4f11a554cb07fb4099c81af12601", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1dda09ee3e858bb2532bb1b7676fa66b2eb4f11a554cb07fb4099c81af12601", kill_on_drop: false }` [INFO] [stdout] b1dda09ee3e858bb2532bb1b7676fa66b2eb4f11a554cb07fb4099c81af12601 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5ad1a359f03973c176c2bbb4bced80f79ad354452f07f2be1cf595cfbbffcc52 [INFO] running `Command { std: "docker" "start" "-a" "5ad1a359f03973c176c2bbb4bced80f79ad354452f07f2be1cf595cfbbffcc52", kill_on_drop: false }` [INFO] [stderr] Checking ccrust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::common::Endian` [INFO] [stdout] --> src/memory/memory3.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::common::Endian; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::memory::memory3::Memory` [INFO] [stdout] --> src/cpu/cpu1.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::memory::memory3::Memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `memory::memory3::Memory` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use memory::memory3::Memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::cpu1::Cpu` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use cpu::cpu1::Cpu; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common::Endian` [INFO] [stdout] --> src/memory/memory3.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::common::Endian; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common::Endian` [INFO] [stdout] --> src/memory/memory3.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | use crate::common::Endian; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::memory::memory3::Memory` [INFO] [stdout] --> src/cpu/cpu1.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::memory::memory3::Memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `memory::memory3::Memory` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use memory::memory3::Memory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpu::cpu1::Cpu` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use cpu::cpu1::Cpu; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/memory/memory3.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Memory { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(size: usize, init_val: u8) -> Memory { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BigEndian` is never constructed [INFO] [stdout] --> src/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Endian { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 2 | SmallEndian, [INFO] [stdout] 3 | BigEndian [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cpu` is never constructed [INFO] [stdout] --> src/cpu/cpu1.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `modified`, `exclusived`, `shared`, and `invalid` are never read [INFO] [stdout] --> src/cache/cache1.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct CacheState { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 2 | modified: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | exclusived: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 4 | shared: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | invalid: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `state`, `byte_num`, and `bytes` are never read [INFO] [stdout] --> src/cache/cache1.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | struct CacheLine { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 19 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | state: CacheState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | byte_num: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | bytes: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cache/cache1.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl CacheLine { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 26 | fn new(index: usize, state: CacheState, word_num: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line_num`, `lines`, and `total_size` are never read [INFO] [stdout] --> src/cache/cache1.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Cache { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 37 | line_num: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 38 | lines: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 39 | total_size: usize [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cache/cache1.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Cache { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 43 | pub fn new(line_num: usize, words_per_line: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CacheLevel` is never used [INFO] [stdout] --> src/cache/cache2.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum CacheLevel { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CacheType` is never used [INFO] [stdout] --> src/cache/cache2.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum CacheType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cache` is never constructed [INFO] [stdout] --> src/cache/cache2.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Cache { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cache/cache2.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Cache { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 35 | pub fn new(level: CacheLevel, type_: CacheType, size: usize, line_count: usize, set_count: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `core_id`, `bit_width`, `reg_num`, `icache`, and `dcache` are never read [INFO] [stdout] --> src/core/core1.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Core { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | core_id: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | bit_width: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | reg_num: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | pub regs: Vec, [INFO] [stdout] 11 | icache: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | dcache: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BigEndian` is never constructed [INFO] [stdout] --> src/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Endian { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 2 | SmallEndian, [INFO] [stdout] 3 | BigEndian [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cpu` is never constructed [INFO] [stdout] --> src/cpu/cpu1.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Cpu { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `modified`, `exclusived`, `shared`, and `invalid` are never read [INFO] [stdout] --> src/cache/cache1.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct CacheState { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 2 | modified: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 3 | exclusived: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 4 | shared: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | invalid: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `state`, `byte_num`, and `bytes` are never read [INFO] [stdout] --> src/cache/cache1.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | struct CacheLine { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 19 | index: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | state: CacheState, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | byte_num: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | bytes: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cache/cache1.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl CacheLine { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 26 | fn new(index: usize, state: CacheState, word_num: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line_num`, `lines`, and `total_size` are never read [INFO] [stdout] --> src/cache/cache1.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Cache { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 37 | line_num: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 38 | lines: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 39 | total_size: usize [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cache/cache1.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl Cache { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 43 | pub fn new(line_num: usize, words_per_line: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CacheLevel` is never used [INFO] [stdout] --> src/cache/cache2.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum CacheLevel { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CacheType` is never used [INFO] [stdout] --> src/cache/cache2.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum CacheType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cache` is never constructed [INFO] [stdout] --> src/cache/cache2.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Cache { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cache/cache2.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Cache { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 35 | pub fn new(level: CacheLevel, type_: CacheType, size: usize, line_count: usize, set_count: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `core_id`, `bit_width`, `reg_num`, `icache`, and `dcache` are never read [INFO] [stdout] --> src/core/core1.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Core { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | core_id: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | bit_width: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | reg_num: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | pub regs: Vec, [INFO] [stdout] 11 | icache: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | dcache: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "5ad1a359f03973c176c2bbb4bced80f79ad354452f07f2be1cf595cfbbffcc52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ad1a359f03973c176c2bbb4bced80f79ad354452f07f2be1cf595cfbbffcc52", kill_on_drop: false }` [INFO] [stdout] 5ad1a359f03973c176c2bbb4bced80f79ad354452f07f2be1cf595cfbbffcc52