[INFO] fetching crate mumuse 0.7.0... [INFO] testing mumuse-0.7.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate mumuse 0.7.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate mumuse 0.7.0 [INFO] finished tweaking crates.io crate mumuse 0.7.0 [INFO] tweaked toml for crates.io crate mumuse 0.7.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate mumuse 0.7.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate mumuse 0.7.0 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.36 [INFO] [stderr] Downloaded tokio-macros v1.7.0 [INFO] [stderr] Downloaded once_cell v1.9.0 [INFO] [stderr] Downloaded quote v1.0.14 [INFO] [stderr] Downloaded alsa v0.4.3 [INFO] [stderr] Downloaded coremidi-sys v2.0.2 [INFO] [stderr] Downloaded num-bigint v0.4.3 [INFO] [stderr] Downloaded memalloc v0.1.0 [INFO] [stderr] Downloaded midir v0.7.0 [INFO] [stderr] Downloaded syn v1.0.85 [INFO] [stderr] Downloaded num-rational v0.4.0 [INFO] [stderr] Downloaded num v0.4.0 [INFO] [stderr] Downloaded libc v0.2.112 [INFO] [stderr] Downloaded core-foundation v0.2.3 [INFO] [stderr] Downloaded time v0.1.44 [INFO] [stderr] Downloaded coremidi v0.4.0 [INFO] [stderr] Downloaded num-complex v0.4.0 [INFO] [stderr] Downloaded core-foundation-sys v0.2.3 [INFO] [stderr] Downloaded nix v0.15.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bed8a73a011f1b6a8e697b73a1cf531a1596e2af00af383444d8d7e8d3afa77e [INFO] running `Command { std: "docker" "start" "-a" "bed8a73a011f1b6a8e697b73a1cf531a1596e2af00af383444d8d7e8d3afa77e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bed8a73a011f1b6a8e697b73a1cf531a1596e2af00af383444d8d7e8d3afa77e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bed8a73a011f1b6a8e697b73a1cf531a1596e2af00af383444d8d7e8d3afa77e", kill_on_drop: false }` [INFO] [stdout] bed8a73a011f1b6a8e697b73a1cf531a1596e2af00af383444d8d7e8d3afa77e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f53351bb318f4646adb5b477b9c601ef84ff34ebd252e48cfdd60004cd9d1621 [INFO] running `Command { std: "docker" "start" "-a" "f53351bb318f4646adb5b477b9c601ef84ff34ebd252e48cfdd60004cd9d1621", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.85 [INFO] [stderr] Compiling pkg-config v0.3.24 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling memalloc v0.1.0 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling num-complex v0.4.0 [INFO] [stderr] Compiling getrandom v0.2.4 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling alsa v0.4.3 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling tokio v1.16.1 [INFO] [stderr] Compiling midir v0.7.0 [INFO] [stderr] Compiling mumuse v0.7.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/music/common.rs:20:45 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Eq, PartialEq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Letter` [INFO] [stdout] 21 | pub enum Letter { [INFO] [stdout] | ------ `Letter` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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/music/common.rs:37:41 [INFO] [stdout] | [INFO] [stdout] 37 | #[derive(Debug, PartialEq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Interval` [INFO] [stdout] 38 | pub enum Interval { [INFO] [stdout] | -------- `Interval` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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 40.44s [INFO] running `Command { std: "docker" "inspect" "f53351bb318f4646adb5b477b9c601ef84ff34ebd252e48cfdd60004cd9d1621", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f53351bb318f4646adb5b477b9c601ef84ff34ebd252e48cfdd60004cd9d1621", kill_on_drop: false }` [INFO] [stdout] f53351bb318f4646adb5b477b9c601ef84ff34ebd252e48cfdd60004cd9d1621 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 99e9bdc6b29ad3dd7970fcd96f451b4aa219903b65bf088ea09aa80018c10a19 [INFO] running `Command { std: "docker" "start" "-a" "99e9bdc6b29ad3dd7970fcd96f451b4aa219903b65bf088ea09aa80018c10a19", kill_on_drop: false }` [INFO] [stderr] Compiling mumuse v0.7.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/music/common.rs:20:45 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Eq, PartialEq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Letter` [INFO] [stdout] 21 | pub enum Letter { [INFO] [stdout] | ------ `Letter` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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/music/common.rs:37:41 [INFO] [stdout] | [INFO] [stdout] 37 | #[derive(Debug, PartialEq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Interval` [INFO] [stdout] 38 | pub enum Interval { [INFO] [stdout] | -------- `Interval` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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/music/common.rs:20:45 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Eq, PartialEq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Letter` [INFO] [stdout] 21 | pub enum Letter { [INFO] [stdout] | ------ `Letter` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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/music/common.rs:37:41 [INFO] [stdout] | [INFO] [stdout] 37 | #[derive(Debug, PartialEq, Clone, Copy, FromPrimitive)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Interval` [INFO] [stdout] 38 | pub enum Interval { [INFO] [stdout] | -------- `Interval` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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 4.14s [INFO] running `Command { std: "docker" "inspect" "99e9bdc6b29ad3dd7970fcd96f451b4aa219903b65bf088ea09aa80018c10a19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99e9bdc6b29ad3dd7970fcd96f451b4aa219903b65bf088ea09aa80018c10a19", kill_on_drop: false }` [INFO] [stdout] 99e9bdc6b29ad3dd7970fcd96f451b4aa219903b65bf088ea09aa80018c10a19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 965a68fe180a647a31aa42466d4db793fe5738899b90279df8ce41b307d0aa66 [INFO] running `Command { std: "docker" "start" "-a" "965a68fe180a647a31aa42466d4db793fe5738899b90279df8ce41b307d0aa66", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/music/common.rs:20:45 [INFO] [stderr] | [INFO] [stderr] 20 | #[derive(Debug, Eq, PartialEq, Clone, Copy, FromPrimitive)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Letter` [INFO] [stderr] 21 | pub enum Letter { [INFO] [stderr] | ------ `Letter` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (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/music/common.rs:37:41 [INFO] [stderr] | [INFO] [stderr] 37 | #[derive(Debug, PartialEq, Clone, Copy, FromPrimitive)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_Interval` [INFO] [stderr] 38 | pub enum Interval { [INFO] [stderr] | -------- `Interval` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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 `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `mumuse` (lib) generated 2 warnings [INFO] [stderr] warning: `mumuse` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mumuse-d52e81752aa3ba6a) [INFO] [stdout] [INFO] [stdout] running 21 tests [INFO] [stdout] test music::chord::tests::from_str ... ok [INFO] [stdout] test music::note::tests::distance_between_notes ... ok [INFO] [stdout] test music::note::tests::note_add_interval ... ok [INFO] [stdout] test music::chord::tests::inversion ... ok [INFO] [stdout] test music::note::tests::note_from_str ... ok [INFO] [stdout] test music::chord::tests::transposition ... ok [INFO] [stdout] test music::note::tests::note_sub_interval ... ok [INFO] [stdout] test music::scale::tests::get_one ... ok [INFO] [stdout] test music::scale::tests::get_two ... ok [INFO] [stdout] test music::scale::tests::major ... ok [INFO] [stdout] test music::scale::tests::minor ... ok [INFO] [stdout] test music::scale::tests::modes ... ok [INFO] [stdout] test music::stream::tests::add_event ... ok [INFO] [stdout] test music::time::tests::time_add_duration ... ok [INFO] [stdout] test music::time::tests::construct ... ok [INFO] [stdout] test music::stream::tests::sort_stream_time ... ok [INFO] [stdout] test music::time::tests::time_add_duration_exceed ... ok [INFO] [stdout] test music::scale::tests::get_notes ... ok [INFO] [stdout] test music::time::tests::time_add_duration_from_middle ... ok [INFO] [stdout] test music::time::tests::time_add_duration_triplet ... ok [INFO] [stdout] test tests::from_key_number_to_note ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests mumuse [INFO] [stdout] [INFO] [stdout] running 33 tests [INFO] [stdout] test src/music/note.rs - music::note::Note (line 108) ... ok [INFO] [stdout] test src/music/note.rs - music::note::Note (line 133) ... ok [INFO] [stdout] test src/music/duration.rs - music::duration::Duration::to_seconds (line 38) ... ok [INFO] [stdout] test src/music/duration.rs - music::duration::Duration::new (line 21) ... ok [INFO] [stdout] test src/music/chord.rs - music::chord::Chord::invert (line 39) ... ok [INFO] [stdout] test src/music/chord.rs - music::chord::Chord (line 105) ... ok [INFO] [stdout] test src/music/chord.rs - music::chord::Chord (line 85) ... ok [INFO] [stdout] test src/music/chord.rs - music::chord::Chord::new (line 21) ... ok [INFO] [stdout] test src/music/note.rs - music::note::Note::chord (line 43) ... ok [INFO] [stdout] test src/music/note.rs - music::note::Note::add (line 172) ... ok [INFO] [stdout] test src/music/note.rs - music::note::Note::new (line 27) ... ok [INFO] [stdout] test src/music/note.rs - music::note::Note::sub (line 195) ... ok [INFO] [stdout] test src/music/scale.rs - music::scale::Scale::by_degree (line 160) ... ok [INFO] [stdout] test src/music/note.rs - music::note::Note::dist_to (line 80) ... ok [INFO] [stdout] test src/music/scale.rs - music::scale::Scale::five (line 240) ... ok [INFO] [stdout] test src/music/scale.rs - music::scale::Scale::four (line 224) ... ok [INFO] [stdout] test src/music/scale.rs - music::scale::Scale::minor (line 126) ... ok [INFO] [stdout] test src/music/scale.rs - music::scale::Scale::minor_harmonic (line 142) ... ok [INFO] [stdout] test src/music/scale.rs - music::scale::Scale::seven (line 272) ... ok [INFO] [stdout] test src/music/scale.rs - music::scale::Scale::major (line 110) ... ok [INFO] [stdout] test src/music/scale.rs - music::scale::Scale::mode (line 63) ... ok [INFO] [stdout] test src/music/scale.rs - music::scale::Scale::one (line 176) ... ok [INFO] [stdout] test src/music/scale.rs - music::scale::Scale::notes (line 314) ... ok [INFO] [stdout] test src/music/scale.rs - music::scale::Scale::six (line 256) ... ok [INFO] [stdout] test src/music/stream.rs - music::stream::Stream::add_event (line 53) ... ok [INFO] [stdout] test src/music/stream.rs - music::stream::Stream::new (line 39) ... ok [INFO] [stdout] test src/music/stream.rs - music::stream::Stream::add_note (line 71) ... ok [INFO] [stdout] test src/music/scale.rs - music::scale::Scale::two (line 192) ... ok [INFO] [stdout] test src/music/scale.rs - music::scale::Scale::three (line 208) ... ok [INFO] [stdout] test src/music/time.rs - music::time::Time::add (line 71) ... ok [INFO] [stdout] test src/music/stream.rs - music::stream::Stream::to_seconds (line 95) ... ok [INFO] [stdout] test src/music/time.rs - music::time::Time::to_seconds (line 49) ... ok [INFO] [stdout] test src/music/time.rs - music::time::Time::new (line 28) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 33 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.62s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "965a68fe180a647a31aa42466d4db793fe5738899b90279df8ce41b307d0aa66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "965a68fe180a647a31aa42466d4db793fe5738899b90279df8ce41b307d0aa66", kill_on_drop: false }` [INFO] [stdout] 965a68fe180a647a31aa42466d4db793fe5738899b90279df8ce41b307d0aa66