[INFO] cloning repository https://github.com/guangie88/sum_count_files [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/guangie88/sum_count_files" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguangie88%2Fsum_count_files", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguangie88%2Fsum_count_files'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a01732ad26c82b7179145a60ebbbaac9458e07ae [INFO] testing guangie88/sum_count_files against 1.86.0 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguangie88%2Fsum_count_files" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/guangie88/sum_count_files on toolchain 1.86.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/guangie88/sum_count_files [INFO] finished tweaking git repo https://github.com/guangie88/sum_count_files [INFO] tweaked toml for git repo https://github.com/guangie88/sum_count_files written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/guangie88/sum_count_files 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.86.0" "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] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [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 structopt-derive v0.1.5 [INFO] [stderr] Downloaded redox_syscall v0.1.32 [INFO] [stderr] Downloaded strsim v0.6.0 [INFO] [stderr] Downloaded structopt v0.1.5 [INFO] [stderr] Downloaded simple_logger v0.4.0 [INFO] [stderr] Downloaded quine-mc_cluskey v0.2.4 [INFO] [stderr] Downloaded cargo_metadata v0.2.3 [INFO] [stderr] Downloaded if_chain v0.1.2 [INFO] [stderr] Downloaded semver v0.6.0 [INFO] [stderr] Downloaded either v1.4.0 [INFO] [stderr] Downloaded itertools v0.6.5 [INFO] [stderr] Downloaded flate2 v0.2.20 [INFO] [stderr] Downloaded url v1.6.0 [INFO] [stderr] Downloaded pulldown-cmark v0.0.15 [INFO] [stderr] Downloaded regex-syntax v0.4.1 [INFO] [stderr] Downloaded regex v0.2.3 [INFO] [stderr] Downloaded clap v2.29.0 [INFO] [stderr] Downloaded libc v0.2.34 [INFO] [stderr] Downloaded chrono v0.3.0 [INFO] [stderr] Downloaded serde_json v1.0.8 [INFO] [stderr] Downloaded serde v1.0.24 [INFO] [stderr] Downloaded log4rs v0.7.0 [INFO] [stderr] Downloaded time v0.1.38 [INFO] [stderr] Downloaded backtrace v0.3.4 [INFO] [stderr] Downloaded num-integer v0.1.35 [INFO] [stderr] Downloaded num v0.1.41 [INFO] [stderr] Downloaded crossbeam v0.2.10 [INFO] [stderr] Downloaded cc v1.0.3 [INFO] [stderr] Downloaded serde_derive_internals v0.18.0 [INFO] [stderr] Downloaded serde_derive v1.0.24 [INFO] [stderr] Downloaded linked-hash-map v0.5.0 [INFO] [stderr] Downloaded log v0.3.8 [INFO] [stderr] Downloaded num-traits v0.1.41 [INFO] [stderr] Downloaded getopts v0.2.15 [INFO] [stderr] Downloaded dbghelp-sys v0.2.0 [INFO] [stderr] Downloaded clippy v0.0.175 [INFO] [stderr] Downloaded rustc-demangle v0.1.5 [INFO] [stderr] Downloaded num-iter v0.1.34 [INFO] [stderr] Downloaded humantime v1.0.0 [INFO] [stderr] Downloaded ansi_term v0.10.2 [INFO] [stderr] Downloaded atty v0.2.3 [INFO] [stderr] Downloaded clippy_lints v0.0.175 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d3529a1aaa4166f6fb6d01e7e3ea7c45974390d63ff1fd103ce57313ea6dd9c7 [INFO] running `Command { std: "docker" "start" "-a" "d3529a1aaa4166f6fb6d01e7e3ea7c45974390d63ff1fd103ce57313ea6dd9c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d3529a1aaa4166f6fb6d01e7e3ea7c45974390d63ff1fd103ce57313ea6dd9c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3529a1aaa4166f6fb6d01e7e3ea7c45974390d63ff1fd103ce57313ea6dd9c7", kill_on_drop: false }` [INFO] [stdout] d3529a1aaa4166f6fb6d01e7e3ea7c45974390d63ff1fd103ce57313ea6dd9c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d390cfda6aae2b7d3e5e6c1aebfc6eb01062df763949b35c2a5f052da0730aa [INFO] running `Command { std: "docker" "start" "-a" "5d390cfda6aae2b7d3e5e6c1aebfc6eb01062df763949b35c2a5f052da0730aa", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.34 [INFO] [stderr] Compiling cc v1.0.3 [INFO] [stderr] Compiling num-traits v0.1.41 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling serde v1.0.24 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling unicode-width v0.1.4 [INFO] [stderr] Compiling linked-hash-map v0.5.0 [INFO] [stderr] Compiling rustc-demangle v0.1.5 [INFO] [stderr] Compiling quick-error v1.2.1 [INFO] [stderr] Compiling vec_map v0.8.0 [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Compiling itoa v0.3.4 [INFO] [stderr] Compiling dtoa v0.4.2 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling strsim v0.6.0 [INFO] [stderr] Compiling textwrap v0.9.0 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling ansi_term v0.10.2 [INFO] [stderr] Compiling log v0.3.8 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling humantime v1.0.0 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling log-mdc v0.1.0 [INFO] [stderr] Compiling yaml-rust v0.4.0 [INFO] [stderr] Compiling antidote v1.0.0 [INFO] [stderr] Compiling crossbeam v0.2.10 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling time v0.1.38 [INFO] [stderr] Compiling atty v0.2.3 [INFO] [stderr] Compiling num-integer v0.1.35 [INFO] [stderr] Compiling ordered-float v0.5.0 [INFO] [stderr] Compiling clap v2.29.0 [INFO] [stderr] Compiling backtrace-sys v0.1.16 [INFO] [stderr] Compiling miniz-sys v0.1.10 [INFO] [stderr] Compiling num-iter v0.1.34 [INFO] [stderr] Compiling num v0.1.41 [INFO] [stderr] Compiling synstructure v0.6.1 [INFO] [stderr] Compiling serde_derive_internals v0.18.0 [INFO] [stderr] Compiling chrono v0.3.0 [INFO] [stderr] Compiling simple_logger v0.4.0 [INFO] [stderr] Compiling structopt-derive v0.1.5 [INFO] [stderr] Compiling serde_derive v1.0.24 [INFO] [stderr] Compiling failure_derive v0.1.1 [INFO] [stderr] Compiling serde_yaml v0.7.3 [INFO] [stderr] Compiling serde_json v1.0.8 [INFO] [stderr] Compiling serde-value v0.5.1 [INFO] [stderr] Compiling flate2 v0.2.20 [INFO] [stderr] Compiling log4rs v0.7.0 [INFO] [stderr] Compiling structopt v0.1.5 [INFO] [stderr] Compiling backtrace v0.3.4 [INFO] [stderr] Compiling failure v0.1.1 [INFO] [stderr] Compiling sum_count_files v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/bin/main.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(StructOpt, Debug)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `MainConfig` is not local [INFO] [stdout] | `StructOpt` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_MainConfig` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_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 `StructOpt` (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] --> src/bin/main.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(StructOpt, Debug)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `MainConfig` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_MainConfig` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_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 `StructOpt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.57s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0, typemap v0.3.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "5d390cfda6aae2b7d3e5e6c1aebfc6eb01062df763949b35c2a5f052da0730aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d390cfda6aae2b7d3e5e6c1aebfc6eb01062df763949b35c2a5f052da0730aa", kill_on_drop: false }` [INFO] [stdout] 5d390cfda6aae2b7d3e5e6c1aebfc6eb01062df763949b35c2a5f052da0730aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 467555eb4f67767f4b01696eefa236a6510ae834fb19fdf0b7484fa2b993247b [INFO] running `Command { std: "docker" "start" "-a" "467555eb4f67767f4b01696eefa236a6510ae834fb19fdf0b7484fa2b993247b", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling sum_count_files v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/bin/main.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(StructOpt, Debug)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `MainConfig` is not local [INFO] [stdout] | `StructOpt` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_MainConfig` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_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 `StructOpt` (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] --> src/bin/main.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(StructOpt, Debug)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `MainConfig` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_MainConfig` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_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 `StructOpt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.07s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0, typemap v0.3.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "467555eb4f67767f4b01696eefa236a6510ae834fb19fdf0b7484fa2b993247b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "467555eb4f67767f4b01696eefa236a6510ae834fb19fdf0b7484fa2b993247b", kill_on_drop: false }` [INFO] [stdout] 467555eb4f67767f4b01696eefa236a6510ae834fb19fdf0b7484fa2b993247b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 147520d6f968dbb891d91f153fb10f27a7bab114d67f85763b6a17eae095cda7 [INFO] running `Command { std: "docker" "start" "-a" "147520d6f968dbb891d91f153fb10f27a7bab114d67f85763b6a17eae095cda7", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/bin/main.rs:24:10 [INFO] [stderr] | [INFO] [stderr] 24 | #[derive(StructOpt, Debug)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | `MainConfig` is not local [INFO] [stderr] | `StructOpt` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_MainConfig` [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `StructOpt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/bin/main.rs:24:10 [INFO] [stderr] | [INFO] [stderr] 24 | #[derive(StructOpt, Debug)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | `MainConfig` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_MainConfig` [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_derive` [INFO] [stderr] = 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] [stderr] = 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] [stderr] = note: this warning originates in the derive macro `StructOpt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `sum_count_files` (bin "sum_count_files" test) generated 2 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: traitobject v0.1.0, typemap v0.3.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/bin/main.rs (/opt/rustwide/target/debug/deps/sum_count_files-8c2109985ecead23) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test tests::error_files ... ok [INFO] [stdout] test tests::st20170902 ... ok [INFO] [stdout] test tests::st20170901 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "147520d6f968dbb891d91f153fb10f27a7bab114d67f85763b6a17eae095cda7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "147520d6f968dbb891d91f153fb10f27a7bab114d67f85763b6a17eae095cda7", kill_on_drop: false }` [INFO] [stdout] 147520d6f968dbb891d91f153fb10f27a7bab114d67f85763b6a17eae095cda7