[INFO] fetching crate modulator 0.4.0...
[INFO] testing modulator-0.4.0 against master#1871252fc8bb672d40787e67404e6eaae7059369 for pr-125151
[INFO] extracting crate modulator 0.4.0 into /workspace/builds/worker-1-tc1/source
[INFO] validating manifest of crates.io crate modulator 0.4.0 on toolchain 1871252fc8bb672d40787e67404e6eaae7059369
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 10 packages to latest compatible versions
[INFO] [stderr]       Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.1+wasi-0.2.0)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded metrohash v1.0.6
[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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7a692d10c451a8f75f7f567a2875f2a1d9ceeae918e915cded49cf7dc885e199
[INFO] running `Command { std: "docker" "start" "-a" "7a692d10c451a8f75f7f567a2875f2a1d9ceeae918e915cded49cf7dc885e199", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7a692d10c451a8f75f7f567a2875f2a1d9ceeae918e915cded49cf7dc885e199", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7a692d10c451a8f75f7f567a2875f2a1d9ceeae918e915cded49cf7dc885e199", kill_on_drop: false }`
[INFO] [stdout] 7a692d10c451a8f75f7f567a2875f2a1d9ceeae918e915cded49cf7dc885e199
[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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f15fa58f42d5964bedf091b126e4db8e3093502abeede1b5e3d01b2d6fe3e572
[INFO] running `Command { std: "docker" "start" "-a" "f15fa58f42d5964bedf091b126e4db8e3093502abeede1b5e3d01b2d6fe3e572", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.155
[INFO] [stderr]    Compiling metrohash v1.0.6
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling rand_core v0.6.4
[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 1.68s
[INFO] running `Command { std: "docker" "inspect" "f15fa58f42d5964bedf091b126e4db8e3093502abeede1b5e3d01b2d6fe3e572", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f15fa58f42d5964bedf091b126e4db8e3093502abeede1b5e3d01b2d6fe3e572", kill_on_drop: false }`
[INFO] [stdout] f15fa58f42d5964bedf091b126e4db8e3093502abeede1b5e3d01b2d6fe3e572
[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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 018e00315d75ab3439f27a73be705ee3ffe067f0d0ce1382d60a16793397328f
[INFO] running `Command { std: "docker" "start" "-a" "018e00315d75ab3439f27a73be705ee3ffe067f0d0ce1382d60a16793397328f", 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.34s
[INFO] running `Command { std: "docker" "inspect" "018e00315d75ab3439f27a73be705ee3ffe067f0d0ce1382d60a16793397328f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "018e00315d75ab3439f27a73be705ee3ffe067f0d0ce1382d60a16793397328f", kill_on_drop: false }`
[INFO] [stdout] 018e00315d75ab3439f27a73be705ee3ffe067f0d0ce1382d60a16793397328f
[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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] dfca8c0a0998e3cbf2c4726d70d28612c0ba43e383c1accebb0c3f0594b1db1b
[INFO] running `Command { std: "docker" "start" "-a" "dfca8c0a0998e3cbf2c4726d70d28612c0ba43e383c1accebb0c3f0594b1db1b", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/modulator-1b83a68337dc251f)
[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 110) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 98) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 237) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 168) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 286) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 250) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 134) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 151) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 87) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 261) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 82) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[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] 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:112: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 98) stdout ----
[INFO] [stdout] error: expected identifier, found `:`
[INFO] [stdout]  --> src/lib.rs:101:3
[INFO] [stdout]   |
[INFO] [stdout] 6 | m1: ModulatorEnv<f32>, // hosts modulators that give scalar f32 values
[INFO] [stdout]   |   ^ expected identifier
[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 237) stdout ----
[INFO] [stdout] error[E0424]: expected value, found module `self`
[INFO] [stdout]  --> src/lib.rs:241:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | 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] 7 | 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] 6 | 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] 7 | 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] 6 | 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] 7 | 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] 7 | 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] 7 | 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 168) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `st` in this scope
[INFO] [stdout]  --> src/lib.rs:170:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | 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] 6 | 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 286) stdout ----
[INFO] [stdout] error: free function without a body
[INFO] [stdout]  --> src/lib.rs:289:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | 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] 6 | 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] 9 | 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] 9 | 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 250) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `st` in this scope
[INFO] [stdout]  --> src/lib.rs:251: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:252: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:253:50
[INFO] [stdout]   |
[INFO] [stdout] 5 |     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] 2 + use modulator::sources::Wave;
[INFO] [stdout]   |
[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 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] 6 | 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] 3 + 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] 11 | 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] 7 |         (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] 7 |         (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] ---- 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] 7 | 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] 4 + 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] 8 |     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] 4 + 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] 13 | 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 87) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `m` in this scope
[INFO] [stdout]  --> src/lib.rs:88: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:88: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 261) stdout ----
[INFO] [stdout] error: `self` parameter is only allowed in associated functions
[INFO] [stdout]  --> src/lib.rs:262: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:262: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 one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::any::Any;
[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 82) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `m` in this scope
[INFO] [stdout]  --> src/lib.rs:83: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 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] 
[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.08s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "dfca8c0a0998e3cbf2c4726d70d28612c0ba43e383c1accebb0c3f0594b1db1b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "dfca8c0a0998e3cbf2c4726d70d28612c0ba43e383c1accebb0c3f0594b1db1b", kill_on_drop: false }`
[INFO] [stdout] dfca8c0a0998e3cbf2c4726d70d28612c0ba43e383c1accebb0c3f0594b1db1b
[INFO] testing modulator-0.4.0 against try#b642703cf9526da1e72c0b6755753b939a9c6b6d for pr-125151
[INFO] extracting crate modulator 0.4.0 into /workspace/builds/worker-1-tc2/source
[INFO] validating manifest of crates.io crate modulator 0.4.0 on toolchain b642703cf9526da1e72c0b6755753b939a9c6b6d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 10 packages to latest compatible versions
[INFO] [stderr]       Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.1+wasi-0.2.0)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b21aa3e0edcecb7eccf04c0954ca2a94d78c3faa79190088674ee8bfbc272daf
[INFO] running `Command { std: "docker" "start" "-a" "b21aa3e0edcecb7eccf04c0954ca2a94d78c3faa79190088674ee8bfbc272daf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b21aa3e0edcecb7eccf04c0954ca2a94d78c3faa79190088674ee8bfbc272daf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b21aa3e0edcecb7eccf04c0954ca2a94d78c3faa79190088674ee8bfbc272daf", kill_on_drop: false }`
[INFO] [stdout] b21aa3e0edcecb7eccf04c0954ca2a94d78c3faa79190088674ee8bfbc272daf
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6754fab4d8141021d30cbab9a36f114eef3d673a788ceeddcd3f61532fe97457
[INFO] running `Command { std: "docker" "start" "-a" "6754fab4d8141021d30cbab9a36f114eef3d673a788ceeddcd3f61532fe97457", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.155
[INFO] [stderr]    Compiling metrohash v1.0.6
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling rand_core v0.6.4
[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 1.40s
[INFO] running `Command { std: "docker" "inspect" "6754fab4d8141021d30cbab9a36f114eef3d673a788ceeddcd3f61532fe97457", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6754fab4d8141021d30cbab9a36f114eef3d673a788ceeddcd3f61532fe97457", kill_on_drop: false }`
[INFO] [stdout] 6754fab4d8141021d30cbab9a36f114eef3d673a788ceeddcd3f61532fe97457
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 96306257fca4488caacee518295c5b15568dc38274fe0eae78919fd54ec0ba43
[INFO] running `Command { std: "docker" "start" "-a" "96306257fca4488caacee518295c5b15568dc38274fe0eae78919fd54ec0ba43", 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.24s
[INFO] running `Command { std: "docker" "inspect" "96306257fca4488caacee518295c5b15568dc38274fe0eae78919fd54ec0ba43", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "96306257fca4488caacee518295c5b15568dc38274fe0eae78919fd54ec0ba43", kill_on_drop: false }`
[INFO] [stdout] 96306257fca4488caacee518295c5b15568dc38274fe0eae78919fd54ec0ba43
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 2e959632f4c4ecdb8e39115648a4fadb33c5eaa8fba295ddf0ddce9b226df1c9
[INFO] running `Command { std: "docker" "start" "-a" "2e959632f4c4ecdb8e39115648a4fadb33c5eaa8fba295ddf0ddce9b226df1c9", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/modulator-1b83a68337dc251f)
[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 110) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 250) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 261) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 237) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 168) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 151) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 286) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 98) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 134) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 82) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 87) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[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] 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:112: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 250) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `st` in this scope
[INFO] [stdout]  --> src/lib.rs:251: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:252: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:253:50
[INFO] [stdout]   |
[INFO] [stdout] 5 |     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] 2 + use modulator::sources::Wave;
[INFO] [stdout]   |
[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 261) stdout ----
[INFO] [stdout] error: `self` parameter is only allowed in associated functions
[INFO] [stdout]  --> src/lib.rs:262: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:262: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 one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use core::any::Any;
[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 237) stdout ----
[INFO] [stdout] error[E0424]: expected value, found module `self`
[INFO] [stdout]  --> src/lib.rs:241:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | 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] 7 | 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] 6 | 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] 7 | 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] 6 | 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] 7 | 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] 7 | 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] 7 | 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 168) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `st` in this scope
[INFO] [stdout]  --> src/lib.rs:170:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | 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] 6 | 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 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] 7 | 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] 4 + 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] 8 |     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] 4 + 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] 13 | 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 286) stdout ----
[INFO] [stdout] error: free function without a body
[INFO] [stdout]  --> src/lib.rs:289:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | 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] 6 | 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] 9 | 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] 9 | 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 98) stdout ----
[INFO] [stdout] error: expected identifier, found `:`
[INFO] [stdout]  --> src/lib.rs:101:3
[INFO] [stdout]   |
[INFO] [stdout] 6 | m1: ModulatorEnv<f32>, // hosts modulators that give scalar f32 values
[INFO] [stdout]   |   ^ expected identifier
[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 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] 6 | 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] 3 + 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] 11 | 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] 7 |         (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] 7 |         (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] ---- 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] 3 | 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] 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:88: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] 
[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.11s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "2e959632f4c4ecdb8e39115648a4fadb33c5eaa8fba295ddf0ddce9b226df1c9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2e959632f4c4ecdb8e39115648a4fadb33c5eaa8fba295ddf0ddce9b226df1c9", kill_on_drop: false }`
[INFO] [stdout] 2e959632f4c4ecdb8e39115648a4fadb33c5eaa8fba295ddf0ddce9b226df1c9
