[INFO] fetching crate modulator 0.4.0... [INFO] testing modulator-0.4.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate modulator 0.4.0 into /workspace/builds/worker-2-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-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate modulator 0.4.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 980707bc8e2b3dc2989ae3c7162e3d1a379aa8abc78e0ec9b432919dc8d7f273 [INFO] running `Command { std: "docker" "start" "-a" "980707bc8e2b3dc2989ae3c7162e3d1a379aa8abc78e0ec9b432919dc8d7f273", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "980707bc8e2b3dc2989ae3c7162e3d1a379aa8abc78e0ec9b432919dc8d7f273", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "980707bc8e2b3dc2989ae3c7162e3d1a379aa8abc78e0ec9b432919dc8d7f273", kill_on_drop: false }` [INFO] [stdout] 980707bc8e2b3dc2989ae3c7162e3d1a379aa8abc78e0ec9b432919dc8d7f273 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a2c631060716f6cc1b5bcc13148045c03eb1457d57d8ac7bc72acba173a9094 [INFO] running `Command { std: "docker" "start" "-a" "7a2c631060716f6cc1b5bcc13148045c03eb1457d57d8ac7bc72acba173a9094", kill_on_drop: false }` [INFO] [stderr] Compiling metrohash v1.0.7 [INFO] [stderr] Compiling modulator v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] running `Command { std: "docker" "inspect" "7a2c631060716f6cc1b5bcc13148045c03eb1457d57d8ac7bc72acba173a9094", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a2c631060716f6cc1b5bcc13148045c03eb1457d57d8ac7bc72acba173a9094", kill_on_drop: false }` [INFO] [stdout] 7a2c631060716f6cc1b5bcc13148045c03eb1457d57d8ac7bc72acba173a9094 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f43499da931e6cd4e3f84d9b3538de473b483afe78a953da9262c7dc3639ba7 [INFO] running `Command { std: "docker" "start" "-a" "4f43499da931e6cd4e3f84d9b3538de473b483afe78a953da9262c7dc3639ba7", 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" "4f43499da931e6cd4e3f84d9b3538de473b483afe78a953da9262c7dc3639ba7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f43499da931e6cd4e3f84d9b3538de473b483afe78a953da9262c7dc3639ba7", kill_on_drop: false }` [INFO] [stdout] 4f43499da931e6cd4e3f84d9b3538de473b483afe78a953da9262c7dc3639ba7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 805cbacc04201ec7376b1d8653ef2cb24b8280e8c227915317635f3a64e618ad [INFO] running `Command { std: "docker" "start" "-a" "805cbacc04201ec7376b1d8653ef2cb24b8280e8c227915317635f3a64e618ad", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/modulator-a70e180773a8af48) [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 82) ... 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 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 237) ... FAILED [INFO] [stdout] test src/lib.rs - (line 286) ... 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, // 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 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 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[E0412]: 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::() { // 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::() { // 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, E0412, 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 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[E0412]: 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 E0412`. [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 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 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: `{ }` [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: `{ }` [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 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.12s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "805cbacc04201ec7376b1d8653ef2cb24b8280e8c227915317635f3a64e618ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "805cbacc04201ec7376b1d8653ef2cb24b8280e8c227915317635f3a64e618ad", kill_on_drop: false }` [INFO] [stdout] 805cbacc04201ec7376b1d8653ef2cb24b8280e8c227915317635f3a64e618ad