[INFO] cloning repository https://github.com/Gifted-s/DSF
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Gifted-s/DSF" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGifted-s%2FDSF", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGifted-s%2FDSF'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e02703f5bfd16f1d12d2f9950d82e07158fb816e
[INFO] checking Gifted-s/DSF against try#0611f7de057c584b8771102fde7aed6c70c71d3b for pr-146440
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGifted-s%2FDSF" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Gifted-s/DSF
[INFO] finished tweaking git repo https://github.com/Gifted-s/DSF
[INFO] tweaked toml for git repo https://github.com/Gifted-s/DSF written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Gifted-s/DSF on toolchain 0611f7de057c584b8771102fde7aed6c70c71d3b
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Gifted-s/DSF 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" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b849963d2570b5b5b9ed4d6d888eeeb9818d604f2ad242c69b3d933dfc0a4a93
[INFO] running `Command { std: "docker" "start" "-a" "b849963d2570b5b5b9ed4d6d888eeeb9818d604f2ad242c69b3d933dfc0a4a93", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b849963d2570b5b5b9ed4d6d888eeeb9818d604f2ad242c69b3d933dfc0a4a93", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b849963d2570b5b5b9ed4d6d888eeeb9818d604f2ad242c69b3d933dfc0a4a93", kill_on_drop: false }`
[INFO] [stdout] b849963d2570b5b5b9ed4d6d888eeeb9818d604f2ad242c69b3d933dfc0a4a93
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2314c133d160186627890431d24aa69d3f7e6f511f09aacde739019afbd7a50f
[INFO] running `Command { std: "docker" "start" "-a" "2314c133d160186627890431d24aa69d3f7e6f511f09aacde739019afbd7a50f", kill_on_drop: false }`
[INFO] [stderr]     Checking drf v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: methods `update_max_dominant_share` and `increment_resource_usage` are never used
[INFO] [stdout]    --> src/lib.rs:169:8
[INFO] [stdout]     |
[INFO] [stdout] 155 | impl DRF {
[INFO] [stdout]     | -------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 169 |     fn update_max_dominant_share(&mut self, job_dominant_share: &DominantShare) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 178 |     fn increment_resource_usage(&mut self, resource: Resource) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: struct `Task` is never constructed
[INFO] [stdout]   --> src/lib.rs:37:12
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct Task<Args: Clone, R> {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it
[INFO] [stdout]    = note: `#[deny(unused_unconstructable_pub_struct)]` (part of `#[deny(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: struct `Job` is never constructed
[INFO] [stdout]   --> src/lib.rs:64:12
[INFO] [stdout]    |
[INFO] [stdout] 64 | pub struct Job {
[INFO] [stdout]    |            ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: struct `DRF` is never constructed
[INFO] [stdout]    --> src/lib.rs:144:12
[INFO] [stdout]     |
[INFO] [stdout] 144 | pub struct DRF {
[INFO] [stdout]     |            ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `job_id` and `resource_type` are never read
[INFO] [stdout]   --> src/lib.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct DominantShare {
[INFO] [stdout]    |            ------------- fields in this struct
[INFO] [stdout] 17 |     job_id: JobId,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 18 |     resource_type: ResourceType,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `DominantShare` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `cpu` and `mem` are never read
[INFO] [stdout]   --> src/lib.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub struct Resource {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 33 |     cpu: Core,
[INFO] [stdout]    |     ^^^
[INFO] [stdout] 34 |     mem: GB,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Resource` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `get_dominant_share`, `allocate_resource_for_next_task`, `run_next_task`, and `get_next_task_resource_demand` are never used
[INFO] [stdout]    --> src/lib.rs:77:8
[INFO] [stdout]     |
[INFO] [stdout]  76 | impl Job {
[INFO] [stdout]     | -------- associated items in this implementation
[INFO] [stdout]  77 |     fn new(id: JobId, total_cpu: Core, total_memory: GB) -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout]  90 |     fn get_dominant_share(&self) -> &DominantShare {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  93 |     fn allocate_resource_for_next_task(&mut self) -> Result<(), ()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 123 |     fn run_next_task(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 136 |     fn get_next_task_resource_demand(&self) -> Option<Resource> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]    --> src/lib.rs:145:5
[INFO] [stdout]     |
[INFO] [stdout] 144 | pub struct DRF {
[INFO] [stdout]     |            --- fields in this struct
[INFO] [stdout] 145 |     total_cpu: Core,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout] 146 |     total_memory: GB,
[INFO] [stdout]     |     ^^^^^^^^^^^^
[INFO] [stdout] 147 |     jobs: HashMap<JobId, Job>,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout] 148 |     max_dominant_share: DominantShare,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 149 |     // least_dominant_share: DominantShare,
[INFO] [stdout] 150 |     cpu_usage: Core,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout] 151 |     ram_usage: GB,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout] 152 |     skip_jobs: HashSet<JobId>,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `update_max_dominant_share`, `increment_resource_usage`, `schedule`, and `least_dominant_fair_share` are never used
[INFO] [stdout]    --> src/lib.rs:156:8
[INFO] [stdout]     |
[INFO] [stdout] 155 | impl DRF {
[INFO] [stdout]     | -------- associated items in this implementation
[INFO] [stdout] 156 |     fn new(total_cpu: Core, total_memory: GB, jobs: HashMap<JobId, Job>) -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 169 |     fn update_max_dominant_share(&mut self, job_dominant_share: &DominantShare) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 178 |     fn increment_resource_usage(&mut self, resource: Resource) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 182 |     fn schedule(&mut self) {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 253 |     fn least_dominant_fair_share(&self) -> (JobId, bool) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `drf` (lib) due to 3 previous errors; 5 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "2314c133d160186627890431d24aa69d3f7e6f511f09aacde739019afbd7a50f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2314c133d160186627890431d24aa69d3f7e6f511f09aacde739019afbd7a50f", kill_on_drop: false }`
[INFO] [stdout] 2314c133d160186627890431d24aa69d3f7e6f511f09aacde739019afbd7a50f
