[INFO] fetching crate pzem004t 0.1.7... [INFO] testing pzem004t-0.1.7 against beta-2020-06-03 for beta-1.45-1 [INFO] extracting crate pzem004t 0.1.7 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate pzem004t 0.1.7 on toolchain beta-2020-06-03 [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate pzem004t 0.1.7 [INFO] finished tweaking crates.io crate pzem004t 0.1.7 [INFO] tweaked toml for crates.io crate pzem004t 0.1.7 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-06-03" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 8cb6c3cec3389f3a18477de01b3a2648e4a65d42df5414d64e40920a9a3c5e05 [INFO] running `"docker" "start" "-a" "8cb6c3cec3389f3a18477de01b3a2648e4a65d42df5414d64e40920a9a3c5e05"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling crc16 v0.4.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling nb v0.1.2 [INFO] [stderr] Compiling embedded-hal v0.2.3 [INFO] [stderr] Compiling pzem004t v0.1.7 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.89s [INFO] running `"docker" "inspect" "8cb6c3cec3389f3a18477de01b3a2648e4a65d42df5414d64e40920a9a3c5e05"` [INFO] running `"docker" "rm" "-f" "8cb6c3cec3389f3a18477de01b3a2648e4a65d42df5414d64e40920a9a3c5e05"` [INFO] [stdout] 8cb6c3cec3389f3a18477de01b3a2648e4a65d42df5414d64e40920a9a3c5e05 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-06-03" "test" "--frozen" "--no-run"` [INFO] [stdout] c7622477a9038db8419a330f404787dff1ada3844d474e49bd84580f86e2e133 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "c7622477a9038db8419a330f404787dff1ada3844d474e49bd84580f86e2e133"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling pzem004t v0.1.7 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.65s [INFO] running `"docker" "inspect" "c7622477a9038db8419a330f404787dff1ada3844d474e49bd84580f86e2e133"` [INFO] running `"docker" "rm" "-f" "c7622477a9038db8419a330f404787dff1ada3844d474e49bd84580f86e2e133"` [INFO] [stdout] c7622477a9038db8419a330f404787dff1ada3844d474e49bd84580f86e2e133 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-06-03" "test" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4f9d2bc0f9b18f338d8cf3ec3667dcbbe41b32b8236a0f278271e732db71a945 [INFO] running `"docker" "start" "-a" "4f9d2bc0f9b18f338d8cf3ec3667dcbbe41b32b8236a0f278271e732db71a945"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/pzem004t-0d49e2a8eef05c04 [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 pzem004t [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/no_timeout.rs - no_timeout::NoTimeout (line 7) ... FAILED [INFO] [stdout] test src/lib.rs - Pzem::read (line 214) ... FAILED [INFO] [stdout] test src/lib.rs - Pzem::set_addr (line 333) ... FAILED [INFO] [stdout] test src/lib.rs - Pzem::set_threshold (line 300) ... FAILED [INFO] [stdout] test src/lib.rs - (line 15) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/no_timeout.rs - no_timeout::NoTimeout (line 7) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `pzem` in this scope [INFO] [stdout] --> src/no_timeout.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 3 | pzem.communicate::(&mut m, None); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `m` in this scope [INFO] [stdout] --> src/no_timeout.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 3 | pzem.communicate::(&mut m, None); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoTimeout` in this scope [INFO] [stdout] --> src/no_timeout.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 3 | pzem.communicate::(&mut m, None); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use pzem004t::NoTimeout; [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 - Pzem::read (line 214) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `pzem` in this scope [INFO] [stdout] --> src/lib.rs:215:1 [INFO] [stdout] | [INFO] [stdout] 3 | pzem.communicate::(&mut m, None).unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `m` in this scope [INFO] [stdout] --> src/lib.rs:215:36 [INFO] [stdout] | [INFO] [stdout] 3 | pzem.communicate::(&mut m, None).unwrap(); [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoTimeout` in this scope [INFO] [stdout] --> src/lib.rs:215:20 [INFO] [stdout] | [INFO] [stdout] 3 | pzem.communicate::(&mut m, None).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use pzem004t::NoTimeout; [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 - Pzem::set_addr (line 333) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `pzem` in this scope [INFO] [stdout] --> src/lib.rs:335:1 [INFO] [stdout] | [INFO] [stdout] 4 | pzem.set_addr(0x10, Some(&mut tim, 2.hz())).unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `tim` in this scope [INFO] [stdout] --> src/lib.rs:335:31 [INFO] [stdout] | [INFO] [stdout] 4 | pzem.set_addr(0x10, Some(&mut tim, 2.hz())).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:335:21 [INFO] [stdout] | [INFO] [stdout] 4 | pzem.set_addr(0x10, Some(&mut tim, 2.hz())).unwrap(); [INFO] [stdout] | ^^^^ -------- ------ supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `hz` found for type `{integer}` in the current scope [INFO] [stdout] --> src/lib.rs:335:38 [INFO] [stdout] | [INFO] [stdout] 4 | pzem.set_addr(0x10, Some(&mut tim, 2.hz())).unwrap(); [INFO] [stdout] | ^^ method not found in `{integer}` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Pzem::set_threshold (line 300) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `pzem` in this scope [INFO] [stdout] --> src/lib.rs:302:1 [INFO] [stdout] | [INFO] [stdout] 4 | pzem.set_threshold(230, Some(&mut ti, 2.hz())).unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ti` in this scope [INFO] [stdout] --> src/lib.rs:302:35 [INFO] [stdout] | [INFO] [stdout] 4 | pzem.set_threshold(230, Some(&mut ti, 2.hz())).unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:302:25 [INFO] [stdout] | [INFO] [stdout] 4 | pzem.set_threshold(230, Some(&mut ti, 2.hz())).unwrap(); [INFO] [stdout] | ^^^^ ------- ------ supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `hz` found for type `{integer}` in the current scope [INFO] [stdout] --> src/lib.rs:302:41 [INFO] [stdout] | [INFO] [stdout] 4 | pzem.set_threshold(230, Some(&mut ti, 2.hz())).unwrap(); [INFO] [stdout] | ^^ method not found in `{integer}` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 15) stdout ---- [INFO] [stdout] error: cannot find macro `block` in this scope [INFO] [stdout] --> src/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 21 | block!(tim.wait()).unwrap(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hprintln` in this scope [INFO] [stdout] --> src/lib.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 16 | hprintln!("Alarm: {}\n", m.alarm).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: a macro with a similar name exists: `eprintln` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hprintln` in this scope [INFO] [stdout] --> src/lib.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 15 | hprintln!("Power factor: {:.2}", m.pf).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: a macro with a similar name exists: `eprintln` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hprintln` in this scope [INFO] [stdout] --> src/lib.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 14 | hprintln!("Frequency: {:.1} Hz", m.frequency).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: a macro with a similar name exists: `eprintln` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hprintln` in this scope [INFO] [stdout] --> src/lib.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 13 | hprintln!("Energy: {:.3} kWh", m.energy).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: a macro with a similar name exists: `eprintln` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hprintln` in this scope [INFO] [stdout] --> src/lib.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 12 | hprintln!("Power: {:.1} W", m.power).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: a macro with a similar name exists: `eprintln` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hprintln` in this scope [INFO] [stdout] --> src/lib.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 11 | hprintln!("Current: {:.3} A", m.current).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: a macro with a similar name exists: `eprintln` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hprintln` in this scope [INFO] [stdout] --> src/lib.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 10 | hprintln!("Voltage: {:.1} V", m.voltage).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: a macro with a similar name exists: `eprintln` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hprintln` in this scope [INFO] [stdout] --> src/lib.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 8 | Err(e) => hprintln!("Could not read PZEM004T: {}", e).unwrap(), [INFO] [stdout] | ^^^^^^^^ help: a macro with a similar name exists: `eprintln` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `serial` in this scope [INFO] [stdout] --> src/lib.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 4 | let mut pzem = pzem004t::Pzem::new(serial, None).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `tim` in this scope [INFO] [stdout] --> src/lib.rs:19:40 [INFO] [stdout] | [INFO] [stdout] 7 | match pzem.read(&mut m, Some((&mut tim, TIMEOUT))) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TIMEOUT` in this scope [INFO] [stdout] --> src/lib.rs:19:45 [INFO] [stdout] | [INFO] [stdout] 7 | match pzem.read(&mut m, Some((&mut tim, TIMEOUT))) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `tim` in this scope [INFO] [stdout] --> src/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 20 | tim.start(1.hz()); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `hz` found for type `{integer}` in the current scope [INFO] [stdout] --> src/lib.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 20 | tim.start(1.hz()); [INFO] [stdout] | ^^ method not found in `{integer}` [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 15) [INFO] [stdout] src/lib.rs - Pzem::read (line 214) [INFO] [stdout] src/lib.rs - Pzem::set_addr (line 333) [INFO] [stdout] src/lib.rs - Pzem::set_threshold (line 300) [INFO] [stdout] src/no_timeout.rs - no_timeout::NoTimeout (line 7) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "4f9d2bc0f9b18f338d8cf3ec3667dcbbe41b32b8236a0f278271e732db71a945"` [INFO] running `"docker" "rm" "-f" "4f9d2bc0f9b18f338d8cf3ec3667dcbbe41b32b8236a0f278271e732db71a945"` [INFO] [stdout] 4f9d2bc0f9b18f338d8cf3ec3667dcbbe41b32b8236a0f278271e732db71a945