[INFO] crate modulator 0.1.0 is already in cache [INFO] extracting crate modulator 0.1.0 into work/ex/beta-1.38-1/sources/1.37.0/reg/modulator/0.1.0 [INFO] extracting crate modulator 0.1.0 into work/ex/beta-1.38-1/sources/beta-2019-08-13/reg/modulator/0.1.0 [INFO] validating manifest of modulator-0.1.0 on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of modulator-0.1.0 on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing modulator-0.1.0 [INFO] finished frobbing modulator-0.1.0 [INFO] frobbed toml for modulator-0.1.0 written to work/ex/beta-1.38-1/sources/1.37.0/reg/modulator/0.1.0/Cargo.toml [INFO] started frobbing modulator-0.1.0 [INFO] finished frobbing modulator-0.1.0 [INFO] frobbed toml for modulator-0.1.0 written to work/ex/beta-1.38-1/sources/beta-2019-08-13/reg/modulator/0.1.0/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing modulator-0.1.0 against beta-2019-08-13 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-0/beta-2019-08-13:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/beta-2019-08-13/reg/modulator/0.1.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+beta-2019-08-13" "build" "--frozen"` [INFO] [stdout] 3185f1bf25170df162e96790e06e664047e360bcf0156d4501d67cfd37cdb8f6 [INFO] running `"docker" "start" "-a" "3185f1bf25170df162e96790e06e664047e360bcf0156d4501d67cfd37cdb8f6"` [INFO] [stderr] Compiling modulator v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:25:19 [INFO] [stderr] | [INFO] [stderr] 25 | pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wave, f32) -> f32` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:50:37 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wave, f32) -> f32` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:56:42 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wave, f32) -> f32` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:76:34 [INFO] [stderr] | [INFO] [stderr] 76 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:162:34 [INFO] [stderr] | [INFO] [stderr] 162 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:309:34 [INFO] [stderr] | [INFO] [stderr] 309 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:528:34 [INFO] [stderr] | [INFO] [stderr] 528 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:701:34 [INFO] [stderr] | [INFO] [stderr] 701 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:396:34 [INFO] [stderr] | [INFO] [stderr] 396 | fn as_any(&mut self) -> &mut Any; [INFO] [stderr] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `"docker" "inspect" "3185f1bf25170df162e96790e06e664047e360bcf0156d4501d67cfd37cdb8f6"` [INFO] running `"docker" "rm" "-f" "3185f1bf25170df162e96790e06e664047e360bcf0156d4501d67cfd37cdb8f6"` [INFO] [stdout] 3185f1bf25170df162e96790e06e664047e360bcf0156d4501d67cfd37cdb8f6 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-0/beta-2019-08-13:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/beta-2019-08-13/reg/modulator/0.1.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+beta-2019-08-13" "test" "--frozen" "--no-run"` [INFO] [stdout] 129cea5dfc202da67d36600841c12b4ea064d37085429762992c0333566d07c5 [INFO] running `"docker" "start" "-a" "129cea5dfc202da67d36600841c12b4ea064d37085429762992c0333566d07c5"` [INFO] [stderr] Compiling modulator v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:25:19 [INFO] [stderr] | [INFO] [stderr] 25 | pub wave: Box f32>, // wave closure, receives self and time in s [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wave, f32) -> f32` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:50:37 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn wave(mut self, wave: Box f32>) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wave, f32) -> f32` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:56:42 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn set_wave(&mut self, wave: Box f32>) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wave, f32) -> f32` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:76:34 [INFO] [stderr] | [INFO] [stderr] 76 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:162:34 [INFO] [stderr] | [INFO] [stderr] 162 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:309:34 [INFO] [stderr] | [INFO] [stderr] 309 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:528:34 [INFO] [stderr] | [INFO] [stderr] 528 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/sources.rs:701:34 [INFO] [stderr] | [INFO] [stderr] 701 | fn as_any(&mut self) -> &mut Any { [INFO] [stderr] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:396:34 [INFO] [stderr] | [INFO] [stderr] 396 | fn as_any(&mut self) -> &mut Any; [INFO] [stderr] | ^^^ help: use `dyn`: `dyn Any` [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.42s [INFO] running `"docker" "inspect" "129cea5dfc202da67d36600841c12b4ea064d37085429762992c0333566d07c5"` [INFO] running `"docker" "rm" "-f" "129cea5dfc202da67d36600841c12b4ea064d37085429762992c0333566d07c5"` [INFO] [stdout] 129cea5dfc202da67d36600841c12b4ea064d37085429762992c0333566d07c5 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-0/beta-2019-08-13:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/beta-2019-08-13/reg/modulator/0.1.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+beta-2019-08-13" "test" "--frozen"` [INFO] [stdout] a9516214474a65360c23b3d8824f5e9eeffcd1547d0a32cb64fe75c9d01e12a9 [INFO] running `"docker" "start" "-a" "a9516214474a65360c23b3d8824f5e9eeffcd1547d0a32cb64fe75c9d01e12a9"` [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running /opt/crater/target/debug/deps/modulator-445c93bba3733c07 [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 [INFO] [stdout] [INFO] [stderr] Doc-tests modulator [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test src/lib.rs - (line 101) ... FAILED [INFO] [stdout] test src/lib.rs - (line 175) ... FAILED [INFO] [stdout] test src/lib.rs - (line 245) ... FAILED [INFO] [stdout] test src/lib.rs - (line 157) ... FAILED [INFO] [stdout] test src/lib.rs - (line 271) ... FAILED [INFO] [stdout] test src/lib.rs - (line 259) ... FAILED [INFO] [stdout] test src/lib.rs - (line 114) ... FAILED [INFO] [stdout] test src/lib.rs - (line 139) ... FAILED [INFO] [stdout] test src/lib.rs - (line 297) ... FAILED [INFO] [stdout] test src/lib.rs - (line 89) ... FAILED [INFO] [stdout] test src/lib.rs - (line 83) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 101) stdout ---- [INFO] [stdout] error: expected one of `!`, `::`, `;`, or `}`, found `,` [INFO] [stdout] --> src/lib.rs:103:22 [INFO] [stdout] | [INFO] [stdout] 5 | m1: ModulatorEnv, // hosts modulators that give scalar f32 values [INFO] [stdout] | - ^ expected one of `!`, `::`, `;`, or `}` here [INFO] [stdout] | | [INFO] [stdout] | help: maybe write a path separator here: `::` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 175) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:176:10 [INFO] [stdout] | [INFO] [stdout] 4 | let v0 = st.m1.value("wave_sin"); // current value of sine modulator [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:177:10 [INFO] [stdout] | [INFO] [stdout] 5 | let v1 = st.m1.value("wave_rnd"); // current value of random walk modulator [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 245) stdout ---- [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/lib.rs:248:1 [INFO] [stdout] | [INFO] [stdout] 6 | self.height = self.base + self.range * st.m1.value(source); [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with `self` parameter [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/lib.rs:248:15 [INFO] [stdout] | [INFO] [stdout] 6 | self.height = self.base + self.range * st.m1.value(source); [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with `self` parameter [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/lib.rs:248:27 [INFO] [stdout] | [INFO] [stdout] 6 | self.height = self.base + self.range * st.m1.value(source); [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with `self` parameter [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:248:40 [INFO] [stdout] | [INFO] [stdout] 6 | self.height = self.base + self.range * st.m1.value(source); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `source` in this scope [INFO] [stdout] --> src/lib.rs:248:52 [INFO] [stdout] | [INFO] [stdout] 6 | self.height = self.base + self.range * st.m1.value(source); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0424, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0424`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 157) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Wave` [INFO] [stdout] --> src/lib.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 6 | let wave = Wave::new(2.0, 0.1).wave(Box::new(|w, _| { [INFO] [stdout] | ^^^^ use of undeclared type or module `Wave` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> src/lib.rs:161:23 [INFO] [stdout] | [INFO] [stdout] 7 | let n = w.value + thread_rng().gen_range(-w.frequency, w.frequency); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 12 | st.m1.take("wave_rnd", Box::new(wave)); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 271) stdout ---- [INFO] [stdout] error: unexpected `self` parameter in function [INFO] [stdout] --> src/lib.rs:272:11 [INFO] [stdout] | [INFO] [stdout] 3 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^^^^^^^ not valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: `self` is only valid as the first parameter of an associated function [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Any` in this scope [INFO] [stdout] --> src/lib.rs:272:30 [INFO] [stdout] | [INFO] [stdout] 3 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] help: possible candidate is found in another module, you can import it into scope [INFO] [stdout] | [INFO] [stdout] 2 | use std::any::Any; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/lib.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 3 | fn as_any(&mut self) -> &mut Any { [INFO] [stdout] | ^ help: consider giving it an explicit bounded or 'static lifetime: `&'static` [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 259) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:260: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:261: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:262:50 [INFO] [stdout] | [INFO] [stdout] 5 | if let Some(ss) = sw.as_any().downcast_mut::() { // safely cast it [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 114) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:116: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:116: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 139) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Wave` [INFO] [stdout] --> src/lib.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 5 | let wave = Wave::new(1.0, 0.5).wave(Box::new(|w, t| { [INFO] [stdout] | ^^^^ use of undeclared type or module `Wave` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `st` in this scope [INFO] [stdout] --> src/lib.rs:146:1 [INFO] [stdout] | [INFO] [stdout] 10 | st.m1.take("wave_sin", Box::new(wave)); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> src/lib.rs:142:28 [INFO] [stdout] | [INFO] [stdout] 6 | (t * w.frequency * f32::consts::PI * 2.0).sin() * w.amplitude [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: you are looking for the module in `std`, not the primitive type [INFO] [stdout] | [INFO] [stdout] 6 | (t * w.frequency * std::f32::consts::PI * 2.0).sin() * w.amplitude [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0223, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0223`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 297) stdout ---- [INFO] [stdout] error: unexpected `self` parameter in function [INFO] [stdout] --> src/lib.rs:299:12 [INFO] [stdout] | [INFO] [stdout] 5 | fn enabled(&self) -> bool; [INFO] [stdout] | ^^^^^ not valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: `self` is only valid as the first parameter of an associated function [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `+`, `::`, `<`, `where`, or `{`, found `;` [INFO] [stdout] --> src/lib.rs:299:26 [INFO] [stdout] | [INFO] [stdout] 5 | fn enabled(&self) -> bool; [INFO] [stdout] | ^ expected one of 7 possible tokens here [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 89) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `m` in this scope [INFO] [stdout] --> src/lib.rs:90: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:90: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 83) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `m` in this scope [INFO] [stdout] --> src/lib.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 3 | let value = m.value(); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 101) [INFO] [stdout] src/lib.rs - (line 114) [INFO] [stdout] src/lib.rs - (line 139) [INFO] [stdout] src/lib.rs - (line 157) [INFO] [stdout] src/lib.rs - (line 175) [INFO] [stdout] src/lib.rs - (line 245) [INFO] [stdout] src/lib.rs - (line 259) [INFO] [stdout] src/lib.rs - (line 271) [INFO] [stdout] src/lib.rs - (line 297) [INFO] [stdout] src/lib.rs - (line 83) [INFO] [stdout] src/lib.rs - (line 89) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 11 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "a9516214474a65360c23b3d8824f5e9eeffcd1547d0a32cb64fe75c9d01e12a9"` [INFO] running `"docker" "rm" "-f" "a9516214474a65360c23b3d8824f5e9eeffcd1547d0a32cb64fe75c9d01e12a9"` [INFO] [stdout] a9516214474a65360c23b3d8824f5e9eeffcd1547d0a32cb64fe75c9d01e12a9