[INFO] fetching crate hts221 0.2.0... [INFO] extracting crate hts221 0.2.0 into work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/reg/hts221/0.2.0 [INFO] extracting crate hts221 0.2.0 into work/ex/pr-61629/sources/try#e212b7d492c96d3837691ba29d32d5f468933fb8/reg/hts221/0.2.0 [INFO] validating manifest of hts221-0.2.0 on toolchain master#c8865d8e195813ade6b84434ac9f8850e7112d1a [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of hts221-0.2.0 on toolchain try#e212b7d492c96d3837691ba29d32d5f468933fb8 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e212b7d492c96d3837691ba29d32d5f468933fb8-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing hts221-0.2.0 [INFO] finished frobbing hts221-0.2.0 [INFO] frobbed toml for hts221-0.2.0 written to work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/reg/hts221/0.2.0/Cargo.toml [INFO] started frobbing hts221-0.2.0 [INFO] finished frobbing hts221-0.2.0 [INFO] frobbed toml for hts221-0.2.0 written to work/ex/pr-61629/sources/try#e212b7d492c96d3837691ba29d32d5f468933fb8/reg/hts221/0.2.0/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e212b7d492c96d3837691ba29d32d5f468933fb8-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e212b7d492c96d3837691ba29d32d5f468933fb8-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache lock [INFO] testing hts221-0.2.0 against master#c8865d8e195813ade6b84434ac9f8850e7112d1a for pr-61629 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-61629/worker-5/master#c8865d8e195813ade6b84434ac9f8850e7112d1a:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/reg/hts221/0.2.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=forbid" "-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" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "build" "--frozen"` [INFO] [stdout] bfee4a770c556d00bc0c30de1e6c16bfb5cf649c0b6af3f102a7ec1f22980e2e [INFO] running `"docker" "start" "-a" "bfee4a770c556d00bc0c30de1e6c16bfb5cf649c0b6af3f102a7ec1f22980e2e"` [INFO] [stderr] Compiling hts221 v0.2.0 (/opt/crater/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.92s [INFO] running `"docker" "inspect" "bfee4a770c556d00bc0c30de1e6c16bfb5cf649c0b6af3f102a7ec1f22980e2e"` [INFO] running `"docker" "rm" "-f" "bfee4a770c556d00bc0c30de1e6c16bfb5cf649c0b6af3f102a7ec1f22980e2e"` [INFO] [stdout] bfee4a770c556d00bc0c30de1e6c16bfb5cf649c0b6af3f102a7ec1f22980e2e [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-61629/worker-5/master#c8865d8e195813ade6b84434ac9f8850e7112d1a:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/reg/hts221/0.2.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=forbid" "-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" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "test" "--frozen" "--no-run"` [INFO] [stdout] f4706faf7c6e034e345ae518fd26cccd9a305d28917c4393aef67ba479255262 [INFO] running `"docker" "start" "-a" "f4706faf7c6e034e345ae518fd26cccd9a305d28917c4393aef67ba479255262"` [INFO] [stderr] Compiling stm32f30x v0.7.1 [INFO] [stderr] Compiling cortex-m-semihosting v0.3.3 [INFO] [stderr] Compiling cortex-m-rt-macros v0.1.5 [INFO] [stderr] Compiling bare-metal v0.2.4 [INFO] [stderr] Compiling cargo_metadata v0.6.4 [INFO] [stderr] Compiling cortex-m v0.6.0 [INFO] [stderr] Compiling cortex-m v0.5.10 [INFO] [stderr] Compiling skeptic v0.13.4 [INFO] [stderr] Compiling cortex-m-rt v0.6.8 [INFO] [stderr] Compiling cortex-m-rt v0.5.7 [INFO] [stderr] Compiling i2cdev v0.3.2 [INFO] [stderr] Compiling linux-embedded-hal v0.1.1 [INFO] [stderr] Compiling stm32f30x-hal v0.2.0 [INFO] [stderr] Compiling hts221 v0.2.0 (/opt/crater/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 03s [INFO] running `"docker" "inspect" "f4706faf7c6e034e345ae518fd26cccd9a305d28917c4393aef67ba479255262"` [INFO] running `"docker" "rm" "-f" "f4706faf7c6e034e345ae518fd26cccd9a305d28917c4393aef67ba479255262"` [INFO] [stdout] f4706faf7c6e034e345ae518fd26cccd9a305d28917c4393aef67ba479255262 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-61629/worker-5/master#c8865d8e195813ade6b84434ac9f8850e7112d1a:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/reg/hts221/0.2.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=forbid" "-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" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "test" "--frozen"` [INFO] [stdout] 5a55c8da3d673a1fcae1397edee50a468c7634b4bce2b729657468cba4f93d95 [INFO] running `"docker" "start" "-a" "5a55c8da3d673a1fcae1397edee50a468c7634b4bce2b729657468cba4f93d95"` [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running /opt/crater/target/debug/deps/hts221-01b645c4aa761d95 [INFO] [stderr] Doc-tests hts221 [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] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/device.rs - device::AvConf::set_humidity_samples_averaged (line 149) ... FAILED [INFO] [stdout] test src/device.rs - device::AvConf::set_humidity_samples_averaged (line 155) ... FAILED [INFO] [stdout] test src/lib.rs - (line 12) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/device.rs - device::AvConf::set_humidity_samples_averaged (line 149) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `AvgH` [INFO] [stdout] --> src/device.rs:151:52 [INFO] [stdout] | [INFO] [stdout] 5 | av_conf.modify(|w| w.set_humidity_samples_averaged(AvgH::Avg8))?; [INFO] [stdout] | ^^^^ use of undeclared type or module `AvgH` [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `hts221` [INFO] [stdout] --> src/device.rs:150:15 [INFO] [stdout] | [INFO] [stdout] 4 | let av_conf = hts221.av_conf()?; [INFO] [stdout] | ^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `hts221::av_conf` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/device.rs:150:15 [INFO] [stdout] | [INFO] [stdout] 4 | let av_conf = hts221.av_conf()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/device.rs:151:1 [INFO] [stdout] | [INFO] [stdout] 5 | av_conf.modify(|w| w.set_humidity_samples_averaged(AvgH::Avg8))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0423, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/device.rs - device::AvConf::set_humidity_samples_averaged (line 155) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `AvgH` [INFO] [stdout] --> src/device.rs:157:39 [INFO] [stdout] | [INFO] [stdout] 5 | av_conf.set_humidity_samples_averaged(AvgH::Avg8)?; // not written to chip [INFO] [stdout] | ^^^^ use of undeclared type or module `AvgH` [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `hts221` [INFO] [stdout] --> src/device.rs:156:15 [INFO] [stdout] | [INFO] [stdout] 4 | let av_conf = hts221.av_conf()?; [INFO] [stdout] | ^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `hts221::av_conf` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/device.rs:156:15 [INFO] [stdout] | [INFO] [stdout] 4 | let av_conf = hts221.av_conf()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/device.rs:157:1 [INFO] [stdout] | [INFO] [stdout] 5 | av_conf.set_humidity_samples_averaged(AvgH::Avg8)?; // not written to chip [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0423, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 12) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `i2c` in this scope [INFO] [stdout] --> src/lib.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 4 | let hts221 = hts221::Builder::new(i2c) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 4 | let hts221 = hts221::Builder::new(i2c) [INFO] [stdout] | ______________^ [INFO] [stdout] 5 | | .with_data_rate(hts221::DataRate::Continuous1Hz) [INFO] [stdout] 6 | | // other configuration... [INFO] [stdout] 7 | | .build()?; [INFO] [stdout] | |_____________^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 8 | let humidity = hts221.humidity_x2()? / 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 9 | let temperature = hts221.temperature_x8()? / 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/device.rs - device::AvConf::set_humidity_samples_averaged (line 149) [INFO] [stdout] src/device.rs - device::AvConf::set_humidity_samples_averaged (line 155) [INFO] [stdout] src/lib.rs - (line 12) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "5a55c8da3d673a1fcae1397edee50a468c7634b4bce2b729657468cba4f93d95"` [INFO] running `"docker" "rm" "-f" "5a55c8da3d673a1fcae1397edee50a468c7634b4bce2b729657468cba4f93d95"` [INFO] [stdout] 5a55c8da3d673a1fcae1397edee50a468c7634b4bce2b729657468cba4f93d95