[INFO] cloning repository https://github.com/FredericDesgreniers/comp353_gen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FredericDesgreniers/comp353_gen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFredericDesgreniers%2Fcomp353_gen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFredericDesgreniers%2Fcomp353_gen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9916d59810824119c5d2ebf332300695d71fd4cb [INFO] building FredericDesgreniers/comp353_gen against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFredericDesgreniers%2Fcomp353_gen" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/FredericDesgreniers/comp353_gen on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/FredericDesgreniers/comp353_gen [INFO] finished tweaking git repo https://github.com/FredericDesgreniers/comp353_gen [INFO] tweaked toml for git repo https://github.com/FredericDesgreniers/comp353_gen written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/FredericDesgreniers/comp353_gen 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Updating git repository `https://github.com/FredericDesgreniers/rand_field/` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.0.18 [INFO] [stderr] Downloaded lazy_static v1.0.2 [INFO] [stderr] Downloaded syn v0.14.7 [INFO] [stderr] Downloaded backtrace-sys v0.1.23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f1d7413f1ab9fb5a782729388e6c932cbc40557e54d522f49ec3cdb567caf533 [INFO] running `Command { std: "docker" "start" "-a" "f1d7413f1ab9fb5a782729388e6c932cbc40557e54d522f49ec3cdb567caf533", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f1d7413f1ab9fb5a782729388e6c932cbc40557e54d522f49ec3cdb567caf533", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1d7413f1ab9fb5a782729388e6c932cbc40557e54d522f49ec3cdb567caf533", kill_on_drop: false }` [INFO] [stdout] f1d7413f1ab9fb5a782729388e6c932cbc40557e54d522f49ec3cdb567caf533 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 070efdeda895de99f90214b68d36f611ad4a9d8815e3370546071693a04a6527 [INFO] running `Command { std: "docker" "start" "-a" "070efdeda895de99f90214b68d36f611ad4a9d8815e3370546071693a04a6527", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling proc-macro2 v0.4.9 [INFO] [stderr] Compiling libc v0.2.42 [INFO] [stderr] Compiling cc v1.0.18 [INFO] [stderr] Compiling failure_derive v0.1.2 [INFO] [stderr] Compiling rustc-demangle v0.1.9 [INFO] [stderr] Compiling cfg-if v0.1.4 [INFO] [stderr] Compiling lazy_static v1.0.2 [INFO] [stderr] Compiling quote v0.6.4 [INFO] [stderr] Compiling syn v0.14.7 [INFO] [stderr] Compiling backtrace-sys v0.1.23 [INFO] [stderr] Compiling rand v0.5.4 [INFO] [stderr] Compiling backtrace v0.3.9 [INFO] [stderr] Compiling rand_field v0.1.0 (https://github.com/FredericDesgreniers/rand_field/#3b5e232d) [INFO] [stderr] Compiling synstructure v0.9.0 [INFO] [stderr] Compiling rand_field_derive v0.1.0 (https://github.com/FredericDesgreniers/rand_field/#3b5e232d) [INFO] [stderr] Compiling failure v0.1.2 [INFO] [stderr] Compiling generator v0.1.0 (/opt/rustwide/workdir/generator) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> generator/src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `failure::Error` [INFO] [stdout] --> generator/src/streams/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use failure::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> generator/src/streams/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Formatter` [INFO] [stdout] --> generator/src/streams/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fmt::Formatter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> generator/src/streams/mod.rs:45:42 [INFO] [stdout] | [INFO] [stdout] 45 | if let Some(name) = self.buffer.drain((0..1)).nth(0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if let Some(name) = self.buffer.drain((0..1)).nth(0) { [INFO] [stdout] 45 + if let Some(name) = self.buffer.drain(0..1).nth(0) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::ThreadRng` [INFO] [stdout] --> generator/src/models/client.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::ThreadRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::ThreadRng` [INFO] [stdout] --> generator/src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use rand::ThreadRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::client::ContractType` [INFO] [stdout] --> generator/src/lib.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use models::client::ContractType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> generator/src/lib.rs:133:2 [INFO] [stdout] | [INFO] [stdout] 133 | (start..rand::thread_rng().gen_range(range.start, range.end)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 133 - (start..rand::thread_rng().gen_range(range.start, range.end)) [INFO] [stdout] 133 + start..rand::thread_rng().gen_range(range.start, range.end) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `attr_literals` has been stable since 1.30.0 and no longer requires an attribute to enable [INFO] [stdout] --> generator/src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(attr_literals, nll)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `nll` has been stable since 1.63.0 and no longer requires an attribute to enable [INFO] [stdout] --> generator/src/lib.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(attr_literals, nll)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `random` [INFO] [stdout] --> generator/src/lib.rs:70:11 [INFO] [stdout] | [INFO] [stdout] 70 | let mut random = rand::thread_rng(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_random` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> generator/src/lib.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | let mut random = rand::thread_rng(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> generator/src/streams/mod.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `ParserError` is not local [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ParserError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> generator/src/streams/mod.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `ParserError` is not local [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ParserError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> generator/src/streams/mod.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `StreamError` is not local [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_StreamError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> generator/src/streams/mod.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `StreamError` is not local [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_StreamError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling comp353_gen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Range` and `SampleRange` [INFO] [stdout] --> src/main.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::distributions::range::{Range, SampleRange}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::thread_rng` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rand::thread_rng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | let mut name_generator: Stream = Stream::from_file(File::open("employees.txt")?); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:27:2 [INFO] [stdout] | [INFO] [stdout] 27 | / output_file.write_all(b" [INFO] [stdout] 28 | | [INFO] [stdout] 29 | | drop table Tasks; [INFO] [stdout] 30 | | drop table Regular; [INFO] [stdout] ... | [INFO] [stdout] 108 | | ); [INFO] [stdout] 109 | | "); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 27 | let _ = output_file.write_all(b" [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:111:2 [INFO] [stdout] | [INFO] [stdout] 111 | output_file.write_all(result.unwrap().as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 111 | let _ = output_file.write_all(result.unwrap().as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.84s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.14.7 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "070efdeda895de99f90214b68d36f611ad4a9d8815e3370546071693a04a6527", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "070efdeda895de99f90214b68d36f611ad4a9d8815e3370546071693a04a6527", kill_on_drop: false }` [INFO] [stdout] 070efdeda895de99f90214b68d36f611ad4a9d8815e3370546071693a04a6527 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b0ca4790a08b7f88591bedf77820eea0a779192c439f3947018a5b836171b0ab [INFO] running `Command { std: "docker" "start" "-a" "b0ca4790a08b7f88591bedf77820eea0a779192c439f3947018a5b836171b0ab", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> generator/src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `failure::Error` [INFO] [stdout] --> generator/src/streams/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use failure::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> generator/src/streams/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Formatter` [INFO] [stdout] --> generator/src/streams/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fmt::Formatter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> generator/src/streams/mod.rs:45:42 [INFO] [stdout] | [INFO] [stdout] 45 | if let Some(name) = self.buffer.drain((0..1)).nth(0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if let Some(name) = self.buffer.drain((0..1)).nth(0) { [INFO] [stdout] 45 + if let Some(name) = self.buffer.drain(0..1).nth(0) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::ThreadRng` [INFO] [stdout] --> generator/src/models/client.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::ThreadRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::ThreadRng` [INFO] [stdout] --> generator/src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use rand::ThreadRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::client::ContractType` [INFO] [stdout] --> generator/src/lib.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use models::client::ContractType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> generator/src/lib.rs:133:2 [INFO] [stdout] | [INFO] [stdout] 133 | (start..rand::thread_rng().gen_range(range.start, range.end)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 133 - (start..rand::thread_rng().gen_range(range.start, range.end)) [INFO] [stdout] 133 + start..rand::thread_rng().gen_range(range.start, range.end) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `attr_literals` has been stable since 1.30.0 and no longer requires an attribute to enable [INFO] [stdout] --> generator/src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(attr_literals, nll)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `nll` has been stable since 1.63.0 and no longer requires an attribute to enable [INFO] [stdout] --> generator/src/lib.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(attr_literals, nll)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `random` [INFO] [stdout] --> generator/src/lib.rs:70:11 [INFO] [stdout] | [INFO] [stdout] 70 | let mut random = rand::thread_rng(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_random` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> generator/src/lib.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | let mut random = rand::thread_rng(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> generator/src/streams/mod.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `ParserError` is not local [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ParserError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> generator/src/streams/mod.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `ParserError` is not local [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ParserError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> generator/src/streams/mod.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `StreamError` is not local [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_StreamError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> generator/src/streams/mod.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | `StreamError` is not local [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_StreamError` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling comp353_gen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Range` and `SampleRange` [INFO] [stdout] --> src/main.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::distributions::range::{Range, SampleRange}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::thread_rng` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rand::thread_rng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | let mut name_generator: Stream = Stream::from_file(File::open("employees.txt")?); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:27:2 [INFO] [stdout] | [INFO] [stdout] 27 | / output_file.write_all(b" [INFO] [stdout] 28 | | [INFO] [stdout] 29 | | drop table Tasks; [INFO] [stdout] 30 | | drop table Regular; [INFO] [stdout] ... | [INFO] [stdout] 108 | | ); [INFO] [stdout] 109 | | "); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 27 | let _ = output_file.write_all(b" [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:111:2 [INFO] [stdout] | [INFO] [stdout] 111 | output_file.write_all(result.unwrap().as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 111 | let _ = output_file.write_all(result.unwrap().as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.14.7 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "b0ca4790a08b7f88591bedf77820eea0a779192c439f3947018a5b836171b0ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0ca4790a08b7f88591bedf77820eea0a779192c439f3947018a5b836171b0ab", kill_on_drop: false }` [INFO] [stdout] b0ca4790a08b7f88591bedf77820eea0a779192c439f3947018a5b836171b0ab