[INFO] fetching crate modulator 0.4.0...
[INFO] testing modulator-0.4.0 against master#2fd6efc32704647e64d3d646d21c4c68eae100e4 for pr-149852-1
[INFO] extracting crate modulator 0.4.0 into /workspace/builds/worker-1-tc1/source
[INFO] started tweaking crates.io crate modulator 0.4.0
[INFO] finished tweaking crates.io crate modulator 0.4.0
[INFO] tweaked toml for crates.io crate modulator 0.4.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate modulator 0.4.0 on toolchain 2fd6efc32704647e64d3d646d21c4c68eae100e4
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 15 packages to latest compatible versions
[INFO] [stderr]       Adding rand v0.8.5 (available: v0.9.2)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded metrohash v1.0.7
[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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 47a83069f597259701927f9b35bf254bb4df8990bb10b4759eefe24ca4b1bbb9
[INFO] running `Command { std: "docker" "start" "-a" "47a83069f597259701927f9b35bf254bb4df8990bb10b4759eefe24ca4b1bbb9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "47a83069f597259701927f9b35bf254bb4df8990bb10b4759eefe24ca4b1bbb9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "47a83069f597259701927f9b35bf254bb4df8990bb10b4759eefe24ca4b1bbb9", kill_on_drop: false }`
[INFO] [stdout] 47a83069f597259701927f9b35bf254bb4df8990bb10b4759eefe24ca4b1bbb9
[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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 65cd76ec3fc033569435af0eba31709db7e930748585da5bcf79b79296bfd8cf
[INFO] running `Command { std: "docker" "start" "-a" "65cd76ec3fc033569435af0eba31709db7e930748585da5bcf79b79296bfd8cf", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.180
[INFO] [stderr]    Compiling zerocopy v0.8.33
[INFO] [stderr]    Compiling metrohash v1.0.7
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling modulator v0.4.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.44s
[INFO] running `Command { std: "docker" "inspect" "65cd76ec3fc033569435af0eba31709db7e930748585da5bcf79b79296bfd8cf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "65cd76ec3fc033569435af0eba31709db7e930748585da5bcf79b79296bfd8cf", kill_on_drop: false }`
[INFO] [stdout] 65cd76ec3fc033569435af0eba31709db7e930748585da5bcf79b79296bfd8cf
[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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6a4f482a32f3a9754d0de3fa80a4a25d8b1857130eb510468018e9996fd2531c
[INFO] running `Command { std: "docker" "start" "-a" "6a4f482a32f3a9754d0de3fa80a4a25d8b1857130eb510468018e9996fd2531c", kill_on_drop: false }`
[INFO] [stderr]    Compiling modulator v0.4.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s
[INFO] running `Command { std: "docker" "inspect" "6a4f482a32f3a9754d0de3fa80a4a25d8b1857130eb510468018e9996fd2531c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6a4f482a32f3a9754d0de3fa80a4a25d8b1857130eb510468018e9996fd2531c", kill_on_drop: false }`
[INFO] [stdout] 6a4f482a32f3a9754d0de3fa80a4a25d8b1857130eb510468018e9996fd2531c
[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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 7ae4f904f912aa97f1c5bc4ec0339c6fce3dc03b8ef35051c2268e2f74ec9edb
[INFO] running `Command { std: "docker" "start" "-a" "7ae4f904f912aa97f1c5bc4ec0339c6fce3dc03b8ef35051c2268e2f74ec9edb", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/modulator-363a3dd29a18a315)
[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 98) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 110) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 286) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 237) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 82) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 87) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 151) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 168) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 261) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 250) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 134) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 98) stdout ----
[INFO] [stdout] error: expected one of `!` or `::`, found `:`
[INFO] [stdout]    --> src/lib.rs:100:3
[INFO] [stdout]     |
[INFO] [stdout] 100 | m1: ModulatorEnv<f32>, // hosts modulators that give scalar f32 values
[INFO] [stdout]     |   ^ expected one of `!` or `::`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 110) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `st` in this scope
[INFO] [stdout]    --> src/lib.rs:112:1
[INFO] [stdout]     |
[INFO] [stdout] 112 | 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:112:15
[INFO] [stdout]     |
[INFO] [stdout] 112 | 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 286) stdout ----
[INFO] [stdout] error: free function without a body
[INFO] [stdout]    --> src/lib.rs:289:1
[INFO] [stdout]     |
[INFO] [stdout] 289 | fn enabled(&self) -> bool;
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^-
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          help: provide a definition for the function: `{ <body> }`
[INFO] [stdout] 
[INFO] [stdout] error: `self` parameter is only allowed in associated functions
[INFO] [stdout]    --> src/lib.rs:289:12
[INFO] [stdout]     |
[INFO] [stdout] 289 | 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] 292 | fn set_enabled(&mut self, enabled: bool);
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
[INFO] [stdout]     |                                         |
[INFO] [stdout]     |                                         help: provide a definition for the function: `{ <body> }`
[INFO] [stdout] 
[INFO] [stdout] error: `self` parameter is only allowed in associated functions
[INFO] [stdout]    --> src/lib.rs:292:16
[INFO] [stdout]     |
[INFO] [stdout] 292 | 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 237) stdout ----
[INFO] [stdout] error[E0424]: expected value, found module `self`
[INFO] [stdout]    --> src/lib.rs:241:1
[INFO] [stdout]     |
[INFO] [stdout] 238 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_237_0() {
[INFO] [stdout]     |                                         ------------------------------ this function can't have a `self` parameter
[INFO] [stdout] ...
[INFO] [stdout] 241 | 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] 238 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_237_0() {
[INFO] [stdout]     |                                         ------------------------------ this function can't have a `self` parameter
[INFO] [stdout] ...
[INFO] [stdout] 241 | 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] 238 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_237_0() {
[INFO] [stdout]     |                                         ------------------------------ this function can't have a `self` parameter
[INFO] [stdout] ...
[INFO] [stdout] 241 | 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] 241 | 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] 241 | 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 82) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `m` in this scope
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 83 | let value = m.value();
[INFO] [stdout]    |             ^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 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 87) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `m` in this scope
[INFO] [stdout]   --> src/lib.rs:88:1
[INFO] [stdout]    |
[INFO] [stdout] 88 | 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:88:11
[INFO] [stdout]    |
[INFO] [stdout] 88 | 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 151) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Wave`
[INFO] [stdout]    --> src/lib.rs:155:12
[INFO] [stdout]     |
[INFO] [stdout] 155 | let wave = Wave::new(2.0, 0.1).wave(Box::new(|w, _| {
[INFO] [stdout]     |            ^^^^ use of undeclared type `Wave`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 150 + 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] 156 |     let n = w.value + thread_rng().gen_range(-w.frequency, w.frequency);
[INFO] [stdout]     |                       ^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 150 + use rand::thread_rng;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `st` in this scope
[INFO] [stdout]    --> src/lib.rs:161:1
[INFO] [stdout]     |
[INFO] [stdout] 161 | 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 168) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `st` in this scope
[INFO] [stdout]    --> src/lib.rs:170:10
[INFO] [stdout]     |
[INFO] [stdout] 170 | 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] 171 | let v1 = st.m1.value("wave_rnd");
[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 261) stdout ----
[INFO] [stdout] error: `self` parameter is only allowed in associated functions
[INFO] [stdout]    --> src/lib.rs:262:11
[INFO] [stdout]     |
[INFO] [stdout] 262 | 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[E0425]: cannot find type `Any` in this scope
[INFO] [stdout]    --> src/lib.rs:262:30
[INFO] [stdout]     |
[INFO] [stdout] 262 | 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] 261 + 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 E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 250) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `st` in this scope
[INFO] [stdout]    --> src/lib.rs:251:14
[INFO] [stdout]     |
[INFO] [stdout] 251 | 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:252:19
[INFO] [stdout]     |
[INFO] [stdout] 252 | 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[E0425]: cannot find type `Wave` in this scope
[INFO] [stdout]    --> src/lib.rs:253:50
[INFO] [stdout]     |
[INFO] [stdout] 253 |     if let Some(ss) = sw.as_any().downcast_mut::<Wave>() { // safely cast it
[INFO] [stdout]     |                                                  ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 250 + use modulator::sources::Wave;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/lib.rs:253:23
[INFO] [stdout]     |
[INFO] [stdout] 253 |     if let Some(ss) = sw.as_any().downcast_mut::<Wave>() { // safely cast it
[INFO] [stdout]     |                       ^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0425.
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 134) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Wave`
[INFO] [stdout]    --> src/lib.rs:137:12
[INFO] [stdout]     |
[INFO] [stdout] 137 | let wave = Wave::new(1.0, 0.5).wave(Box::new(|w, t| {
[INFO] [stdout]     |            ^^^^ use of undeclared type `Wave`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 133 + 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] 142 | 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] 138 |         (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] 138 |         (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 110)
[INFO] [stdout]     src/lib.rs - (line 134)
[INFO] [stdout]     src/lib.rs - (line 151)
[INFO] [stdout]     src/lib.rs - (line 168)
[INFO] [stdout]     src/lib.rs - (line 237)
[INFO] [stdout]     src/lib.rs - (line 250)
[INFO] [stdout]     src/lib.rs - (line 261)
[INFO] [stdout]     src/lib.rs - (line 286)
[INFO] [stdout]     src/lib.rs - (line 82)
[INFO] [stdout]     src/lib.rs - (line 87)
[INFO] [stdout]     src/lib.rs - (line 98)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 11 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "7ae4f904f912aa97f1c5bc4ec0339c6fce3dc03b8ef35051c2268e2f74ec9edb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7ae4f904f912aa97f1c5bc4ec0339c6fce3dc03b8ef35051c2268e2f74ec9edb", kill_on_drop: false }`
[INFO] [stdout] 7ae4f904f912aa97f1c5bc4ec0339c6fce3dc03b8ef35051c2268e2f74ec9edb
