[INFO] fetching crate modulator 0.1.0... [INFO] testing modulator-0.1.0 against 1.60.0 for beta-1.61-1 [INFO] extracting crate modulator 0.1.0 into /workspace/builds/worker-52/source [INFO] validating manifest of crates.io crate modulator 0.1.0 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate modulator 0.1.0 [INFO] finished tweaking crates.io crate modulator 0.1.0 [INFO] tweaked toml for crates.io crate modulator 0.1.0 written to /workspace/builds/worker-52/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d1dda7aefe0ce03199d68b68fcd4db869016d65449580fcc6186293dc2243171 [INFO] running `Command { std: "docker" "start" "-a" "d1dda7aefe0ce03199d68b68fcd4db869016d65449580fcc6186293dc2243171", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d1dda7aefe0ce03199d68b68fcd4db869016d65449580fcc6186293dc2243171", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1dda7aefe0ce03199d68b68fcd4db869016d65449580fcc6186293dc2243171", kill_on_drop: false }` [INFO] [stdout] d1dda7aefe0ce03199d68b68fcd4db869016d65449580fcc6186293dc2243171 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db76ca1c200b44b7e5a0983630691919132b91a401e10ea995574782cc2dbf49 [INFO] running `Command { std: "docker" "start" "-a" "db76ca1c200b44b7e5a0983630691919132b91a401e10ea995574782cc2dbf49", kill_on_drop: false }` [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand v0.5.6 [INFO] [stderr] Compiling modulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stdout] 25 + pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:396:34 [INFO] [stdout] | [INFO] [stdout] 396 | fn as_any(&mut self) -> &mut Any; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 396 - fn as_any(&mut self) -> &mut Any; [INFO] [stdout] 396 + fn as_any(&mut self) -> &mut dyn Any; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 - pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stdout] 50 + pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:56:42 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 - pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stdout] 56 + pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 76 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 76 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 76 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:162:34 [INFO] [stdout] | [INFO] [stdout] 162 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 162 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 162 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:309:34 [INFO] [stdout] | [INFO] [stdout] 309 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 309 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 309 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:528:34 [INFO] [stdout] | [INFO] [stdout] 528 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 528 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 528 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:701:34 [INFO] [stdout] | [INFO] [stdout] 701 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 701 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 701 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.88s [INFO] running `Command { std: "docker" "inspect" "db76ca1c200b44b7e5a0983630691919132b91a401e10ea995574782cc2dbf49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db76ca1c200b44b7e5a0983630691919132b91a401e10ea995574782cc2dbf49", kill_on_drop: false }` [INFO] [stdout] db76ca1c200b44b7e5a0983630691919132b91a401e10ea995574782cc2dbf49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 159172c09cb309dbcc985183f884160dcd9d289b0471860950f0719799f373fb [INFO] running `Command { std: "docker" "start" "-a" "159172c09cb309dbcc985183f884160dcd9d289b0471860950f0719799f373fb", kill_on_drop: false }` [INFO] [stderr] Compiling modulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stdout] 25 + pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:396:34 [INFO] [stdout] | [INFO] [stdout] 396 | fn as_any(&mut self) -> &mut Any; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 396 - fn as_any(&mut self) -> &mut Any; [INFO] [stdout] 396 + fn as_any(&mut self) -> &mut dyn Any; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 - pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stdout] 50 + pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:56:42 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 - pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stdout] 56 + pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 76 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 76 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 76 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:162:34 [INFO] [stdout] | [INFO] [stdout] 162 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 162 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 162 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:309:34 [INFO] [stdout] | [INFO] [stdout] 309 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 309 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 309 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:528:34 [INFO] [stdout] | [INFO] [stdout] 528 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 528 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 528 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:701:34 [INFO] [stdout] | [INFO] [stdout] 701 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 701 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 701 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stdout] 25 + pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:396:34 [INFO] [stdout] | [INFO] [stdout] 396 | fn as_any(&mut self) -> &mut Any; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 396 - fn as_any(&mut self) -> &mut Any; [INFO] [stdout] 396 + fn as_any(&mut self) -> &mut dyn Any; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 - pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stdout] 50 + pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:56:42 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 - pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stdout] 56 + pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 76 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 76 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 76 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:162:34 [INFO] [stdout] | [INFO] [stdout] 162 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 162 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 162 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:309:34 [INFO] [stdout] | [INFO] [stdout] 309 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 309 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 309 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:528:34 [INFO] [stdout] | [INFO] [stdout] 528 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 528 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 528 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sources.rs:701:34 [INFO] [stdout] | [INFO] [stdout] 701 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 701 - fn as_any(&mut self) -> &mut Any { [INFO] [stdout] 701 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.70s [INFO] running `Command { std: "docker" "inspect" "159172c09cb309dbcc985183f884160dcd9d289b0471860950f0719799f373fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "159172c09cb309dbcc985183f884160dcd9d289b0471860950f0719799f373fb", kill_on_drop: false }` [INFO] [stdout] 159172c09cb309dbcc985183f884160dcd9d289b0471860950f0719799f373fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-52/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b1e02895d4f977ba725f3a5eddccc2d12e19c462ce0cdee28f55b5b4737a25a2 [INFO] running `Command { std: "docker" "start" "-a" "b1e02895d4f977ba725f3a5eddccc2d12e19c462ce0cdee28f55b5b4737a25a2", kill_on_drop: false }` [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:25:19 [INFO] [stderr] | [INFO] [stderr] 25 | pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 25 - pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stderr] 25 + pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:396:34 [INFO] [stderr] | [INFO] [stderr] 396 | fn as_any(&mut self) -> &mut Any; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 396 - fn as_any(&mut self) -> &mut Any; [INFO] [stderr] 396 + fn as_any(&mut self) -> &mut dyn Any; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:50:37 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 50 - pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stderr] 50 + pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:56:42 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 56 - pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stderr] 56 + pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:76:34 [INFO] [stderr] | [INFO] [stderr] 76 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 76 - fn as_any(&mut self) -> &mut Any { [INFO] [stderr] 76 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:162:34 [INFO] [stderr] | [INFO] [stderr] 162 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 162 - fn as_any(&mut self) -> &mut Any { [INFO] [stderr] 162 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:309:34 [INFO] [stderr] | [INFO] [stderr] 309 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 309 - fn as_any(&mut self) -> &mut Any { [INFO] [stderr] 309 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:528:34 [INFO] [stderr] | [INFO] [stderr] 528 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 528 - fn as_any(&mut self) -> &mut Any { [INFO] [stderr] 528 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:701:34 [INFO] [stderr] | [INFO] [stderr] 701 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 701 - fn as_any(&mut self) -> &mut Any { [INFO] [stderr] 701 + fn as_any(&mut self) -> &mut dyn Any { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `modulator` (lib) generated 9 warnings [INFO] [stderr] warning: `modulator` (lib test) generated 9 warnings (9 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/modulator-0528466fbf82f03f) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests modulator [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test src/lib.rs - (line 111) ... FAILED [INFO] [stdout] test src/lib.rs - (line 287) ... FAILED [INFO] [stdout] test src/lib.rs - (line 262) ... FAILED [INFO] [stdout] test src/lib.rs - (line 83) ... FAILED [INFO] [stdout] test src/lib.rs - (line 251) ... FAILED [INFO] [stdout] test src/lib.rs - (line 99) ... FAILED [INFO] [stdout] test src/lib.rs - (line 152) ... FAILED [INFO] [stdout] test src/lib.rs - (line 238) ... FAILED [INFO] [stdout] test src/lib.rs - (line 169) ... FAILED [INFO] [stdout] test src/lib.rs - (line 88) ... FAILED [INFO] [stdout] test src/lib.rs - (line 135) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 111) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:113:1 [INFO] [stdout] | [INFO] [stdout] 4 | st.m1.advance(dt); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dt` in this scope [INFO] [stdout] --> src/lib.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 4 | st.m1.advance(dt); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 287) stdout ---- [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/lib.rs:289:1 [INFO] [stdout] | [INFO] [stdout] 5 | fn enabled(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/lib.rs:289:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn enabled(&self) -> bool; [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/lib.rs:292:1 [INFO] [stdout] | [INFO] [stdout] 8 | fn set_enabled(&mut self, enabled: bool); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/lib.rs:292:16 [INFO] [stdout] | [INFO] [stdout] 8 | fn set_enabled(&mut self, enabled: bool); [INFO] [stdout] | ^^^^^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 262) stdout ---- [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/lib.rs:263:11 [INFO] [stdout] | [INFO] [stdout] 3 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^^^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Any` in this scope [INFO] [stdout] --> src/lib.rs:263:30 [INFO] [stdout] | [INFO] [stdout] 3 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use std::any::Any; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 83) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `m` in this scope [INFO] [stdout] --> src/lib.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 3 | let value = m.value(); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 251) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:252:14 [INFO] [stdout] | [INFO] [stdout] 3 | let ampmod = st.m1.value("amp_mod"); // amplitude modulation value [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:253:19 [INFO] [stdout] | [INFO] [stdout] 4 | if let Some(sw) = st.m1.get_mut("wave_sin") { // borrow trait object [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Wave` in this scope [INFO] [stdout] --> src/lib.rs:254:50 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_251_0() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 5 | if let Some(ss) = sw.as_any().downcast_mut::() { // safely cast it [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 99) stdout ---- [INFO] [stdout] error: comparison operators cannot be chained [INFO] [stdout] --> src/lib.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_99_0() { [INFO] [stdout] | - while parsing this struct [INFO] [stdout] 5 | m1: ModulatorEnv, // hosts modulators that give scalar f32 values [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments [INFO] [stdout] = help: or use `(...)` if you meant to specify fn arguments [INFO] [stdout] [INFO] [stdout] error: struct literal body without path [INFO] [stdout] --> src/lib.rs:100:73 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_99_0() { [INFO] [stdout] | _________________________________________________________________________^ [INFO] [stdout] 5 | | m1: ModulatorEnv, // hosts modulators that give scalar f32 values [INFO] [stdout] 6 | | [INFO] [stdout] 7 | | // Somewhere in constructor of that struct... [INFO] [stdout] 8 | | m1: ModulatorEnv::new(), [INFO] [stdout] 9 | | } _doctest_main_src_lib_rs_99_0() } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] help: you might have forgotten to add the struct literal inside the block [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_99_0() { SomeStruct { [INFO] [stdout] 5 | m1: ModulatorEnv, // hosts modulators that give scalar f32 values [INFO] [stdout] 6 | [INFO] [stdout] 7 | // Somewhere in constructor of that struct... [INFO] [stdout] 8 | m1: ModulatorEnv::new(), [INFO] [stdout] 9 ~ } } _doctest_main_src_lib_rs_99_0() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 152) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Wave` [INFO] [stdout] --> src/lib.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 6 | let wave = Wave::new(2.0, 0.1).wave(Box::new(|w, _| { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use modulator::sources::Wave; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/lib.rs:156:23 [INFO] [stdout] | [INFO] [stdout] 7 | let n = w.value + thread_rng().gen_range(-w.frequency, w.frequency); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:161:1 [INFO] [stdout] | [INFO] [stdout] 12 | st.m1.take("wave_rnd", Box::new(wave)); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 238) stdout ---- [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/lib.rs:241:1 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_238_0() { [INFO] [stdout] | ------------------------------ this function can't have a `self` parameter [INFO] [stdout] 6 | self.height = self.base + self.range * st.m1.value(source); [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/lib.rs:241:15 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_238_0() { [INFO] [stdout] | ------------------------------ this function can't have a `self` parameter [INFO] [stdout] 6 | self.height = self.base + self.range * st.m1.value(source); [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/lib.rs:241:27 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_238_0() { [INFO] [stdout] | ------------------------------ this function can't have a `self` parameter [INFO] [stdout] 6 | self.height = self.base + self.range * st.m1.value(source); [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:241:40 [INFO] [stdout] | [INFO] [stdout] 6 | self.height = self.base + self.range * st.m1.value(source); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `source` in this scope [INFO] [stdout] --> src/lib.rs:241:52 [INFO] [stdout] | [INFO] [stdout] 6 | self.height = self.base + self.range * st.m1.value(source); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0424, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0424`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 169) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:170:10 [INFO] [stdout] | [INFO] [stdout] 4 | let v0 = st.m1.value("wave_sin"); // current value of sine modulator [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:171:10 [INFO] [stdout] | [INFO] [stdout] 5 | let v1 = st.m1.value("wave_rnd"); // current value of random walk modulator [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 88) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `m` in this scope [INFO] [stdout] --> src/lib.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 3 | m.advance(dt); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dt` in this scope [INFO] [stdout] --> src/lib.rs:89:11 [INFO] [stdout] | [INFO] [stdout] 3 | m.advance(dt); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 135) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Wave` [INFO] [stdout] --> src/lib.rs:137:12 [INFO] [stdout] | [INFO] [stdout] 5 | let wave = Wave::new(1.0, 0.5).wave(Box::new(|w, t| { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use modulator::sources::Wave; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:142:1 [INFO] [stdout] | [INFO] [stdout] 10 | st.m1.take("wave_sin", Box::new(wave)); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> src/lib.rs:138:28 [INFO] [stdout] | [INFO] [stdout] 6 | (t * w.frequency * f32::consts::PI * 2.0).sin() * w.amplitude [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you are looking for the module in `std`, not the primitive type [INFO] [stdout] | [INFO] [stdout] 6 | (t * w.frequency * std::f32::consts::PI * 2.0).sin() * w.amplitude [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0223, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0223`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 111) [INFO] [stdout] src/lib.rs - (line 135) [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] [stdout] src/lib.rs - (line 152) [INFO] [stdout] src/lib.rs - (line 169) [INFO] [stdout] src/lib.rs - (line 238) [INFO] [stdout] src/lib.rs - (line 251) [INFO] [stdout] src/lib.rs - (line 262) [INFO] [stdout] src/lib.rs - (line 287) [INFO] [stdout] src/lib.rs - (line 83) [INFO] [stdout] src/lib.rs - (line 88) [INFO] [stdout] src/lib.rs - (line 99) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 11 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b1e02895d4f977ba725f3a5eddccc2d12e19c462ce0cdee28f55b5b4737a25a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1e02895d4f977ba725f3a5eddccc2d12e19c462ce0cdee28f55b5b4737a25a2", kill_on_drop: false }` [INFO] [stdout] b1e02895d4f977ba725f3a5eddccc2d12e19c462ce0cdee28f55b5b4737a25a2