[INFO] fetching crate i2cdev-bmp280 0.1.4... [INFO] checking i2cdev-bmp280-0.1.4 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate i2cdev-bmp280 0.1.4 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate i2cdev-bmp280 0.1.4 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate i2cdev-bmp280 0.1.4 [INFO] finished tweaking crates.io crate i2cdev-bmp280 0.1.4 [INFO] tweaked toml for crates.io crate i2cdev-bmp280 0.1.4 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 55 packages to latest compatible versions [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.6.0) [INFO] [stderr] Adding bytes v0.4.12 (latest: v1.7.1) [INFO] [stderr] Adding cargo_metadata v0.14.2 (latest: v0.18.1) [INFO] [stderr] Adding cfg-if v0.1.10 (latest: v1.0.0) [INFO] [stderr] Adding i2cdev v0.3.2 (latest: v0.6.1) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (latest: v0.6.5) [INFO] [stderr] Adding nix v0.10.0 (latest: v0.29.0) [INFO] [stderr] Adding pulldown-cmark v0.9.6 (latest: v0.12.0) [INFO] [stderr] Adding windows-sys v0.52.0 (latest: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded i2cdev v0.3.2 [INFO] [stderr] Downloaded i2csensors v0.1.3 [INFO] [stderr] Downloaded nix v0.10.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aceb25c0e8498fbaed207c3a7db5c05e835f75f665ea9637fe1f583c4e832497 [INFO] running `Command { std: "docker" "start" "-a" "aceb25c0e8498fbaed207c3a7db5c05e835f75f665ea9637fe1f583c4e832497", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aceb25c0e8498fbaed207c3a7db5c05e835f75f665ea9637fe1f583c4e832497", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aceb25c0e8498fbaed207c3a7db5c05e835f75f665ea9637fe1f583c4e832497", kill_on_drop: false }` [INFO] [stdout] aceb25c0e8498fbaed207c3a7db5c05e835f75f665ea9637fe1f583c4e832497 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f145f19ad8befc87d8bc6ee643e575feb923a9087ef7dc1dd047ca28c0481dd [INFO] running `Command { std: "docker" "start" "-a" "4f145f19ad8befc87d8bc6ee643e575feb923a9087ef7dc1dd047ca28c0481dd", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling rustix v0.38.35 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling camino v1.1.9 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling pulldown-cmark v0.9.6 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling bytecount v0.6.8 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling nix v0.10.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking i2csensors v0.1.3 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Compiling cargo-platform v0.1.8 [INFO] [stderr] Compiling cargo_metadata v0.14.2 [INFO] [stderr] Compiling skeptic v0.13.7 [INFO] [stderr] Compiling i2cdev v0.3.2 [INFO] [stderr] Checking i2cdev-bmp280 v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigEndian` [INFO] [stdout] --> src/lib.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | use byteorder::{ByteOrder, BigEndian, LittleEndian}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | try!(i2cdev.write(&[register])); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | try!(i2cdev.read(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `x1` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | x1 = 0b00100000, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `X1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `x2` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | x2 = 0b01000000, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `X2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `x4` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | x4 = 0b01100000, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `X4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `x8` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | x8 = 0b10000000, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `X8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `x16` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | x16 = 0b10100000 [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `X16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms0_5` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | ms0_5 = 0b00000000, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Ms0_5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms62_5` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | ms62_5 = 0b00100000, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Ms62_5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms125` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | ms125 = 0b01000000, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Ms125` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms250` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | ms250 = 0b01100000, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Ms250` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms500` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:145:5 [INFO] [stdout] | [INFO] [stdout] 145 | ms500 = 0b10000000, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Ms500` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms1000` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 146 | ms1000 = 0b10100000, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Ms1000` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms2000` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 147 | ms2000 = 0b11000000, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Ms2000` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigEndian` [INFO] [stdout] --> src/lib.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | use byteorder::{ByteOrder, BigEndian, LittleEndian}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms4000` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | ms4000 = 0b11100000 [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Ms4000` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | try!(i2cdev.write(&[register])); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | try!(i2cdev.smbus_write_byte_data(0xF4, measurement_control)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | try!(i2cdev.read(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | try!(i2cdev.smbus_write_byte_data(0xF5, config)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | let id = try!(i2cdev.smbus_read_byte_data(0xD0)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `x1` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | x1 = 0b00100000, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `X1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:194:28 [INFO] [stdout] | [INFO] [stdout] 194 | let coefficients = try!(BMP280CalibrationCoefficients::new(&mut i2cdev)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | try!(self.barometer.smbus_write_byte_data(0xE0, 0xB6)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `x2` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | x2 = 0b01000000, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `X2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | try!(self.barometer.smbus_write_byte_data(0xF4, ctrl_meas)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:212:29 [INFO] [stdout] | [INFO] [stdout] 212 | let mut ctrl_meas = try!(self.barometer.smbus_read_byte_data(0xF4)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `x4` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | x4 = 0b01100000, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `X4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:237:16 [INFO] [stdout] | [INFO] [stdout] 237 | var1 = ((((32768 + var1)) * (self.coeff.dig_p1 as i32)) >> 15); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 237 - var1 = ((((32768 + var1)) * (self.coeff.dig_p1 as i32)) >> 15); [INFO] [stdout] 237 + var1 = (((32768 + var1)) * (self.coeff.dig_p1 as i32)) >> 15; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | try!(self.barometer.write(&[BMP280_TEMP_MSB])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | try!(self.barometer.read(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `x8` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | x8 = 0b10000000, [INFO] [stdout] | ^^ help: convert the identifier to upper camel case (notice the capitalization): `X8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:346:9 [INFO] [stdout] | [INFO] [stdout] 346 | try!(self.barometer.write(&[BMP280_PRESS_MSB])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `x16` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | x16 = 0b10100000 [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case (notice the capitalization): `X16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 347 | try!(self.barometer.read(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms0_5` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | ms0_5 = 0b00000000, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Ms0_5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms62_5` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | ms62_5 = 0b00100000, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Ms62_5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms125` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | ms125 = 0b01000000, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Ms125` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms250` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | ms250 = 0b01100000, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Ms250` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms500` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:145:5 [INFO] [stdout] | [INFO] [stdout] 145 | ms500 = 0b10000000, [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case: `Ms500` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms1000` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 146 | ms1000 = 0b10100000, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Ms1000` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms2000` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 147 | ms2000 = 0b11000000, [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Ms2000` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ms4000` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | ms4000 = 0b11100000 [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Ms4000` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | try!(i2cdev.smbus_write_byte_data(0xF4, measurement_control)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | try!(i2cdev.smbus_write_byte_data(0xF5, config)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | let id = try!(i2cdev.smbus_read_byte_data(0xD0)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:194:28 [INFO] [stdout] | [INFO] [stdout] 194 | let coefficients = try!(BMP280CalibrationCoefficients::new(&mut i2cdev)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | try!(self.barometer.smbus_write_byte_data(0xE0, 0xB6)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | try!(self.barometer.smbus_write_byte_data(0xF4, ctrl_meas)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:212:29 [INFO] [stdout] | [INFO] [stdout] 212 | let mut ctrl_meas = try!(self.barometer.smbus_read_byte_data(0xF4)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:237:16 [INFO] [stdout] | [INFO] [stdout] 237 | var1 = ((((32768 + var1)) * (self.coeff.dig_p1 as i32)) >> 15); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 237 - var1 = ((((32768 + var1)) * (self.coeff.dig_p1 as i32)) >> 15); [INFO] [stdout] 237 + var1 = (((32768 + var1)) * (self.coeff.dig_p1 as i32)) >> 15; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 336 | try!(self.barometer.write(&[BMP280_TEMP_MSB])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | try!(self.barometer.read(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:346:9 [INFO] [stdout] | [INFO] [stdout] 346 | try!(self.barometer.write(&[BMP280_PRESS_MSB])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/lib.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 347 | try!(self.barometer.read(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:63:39 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn new(i2cdev: &mut I2CDevice) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | pub fn new(i2cdev: &mut dyn I2CDevice) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:63:39 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn new(i2cdev: &mut I2CDevice) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | pub fn new(i2cdev: &mut dyn I2CDevice) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut register: u8 = 0x88; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:220:14 [INFO] [stdout] | [INFO] [stdout] 220 | let (mut var1, mut var2, mut t): (i32, i32, i32); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:220:24 [INFO] [stdout] | [INFO] [stdout] 220 | let (mut var1, mut var2, mut t): (i32, i32, i32); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:220:34 [INFO] [stdout] | [INFO] [stdout] 220 | let (mut var1, mut var2, mut t): (i32, i32, i32); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:273:14 [INFO] [stdout] | [INFO] [stdout] 273 | let (mut var1, mut var2, mut t): (f64, f64, f64); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:273:24 [INFO] [stdout] | [INFO] [stdout] 273 | let (mut var1, mut var2, mut t): (f64, f64, f64); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:273:34 [INFO] [stdout] | [INFO] [stdout] 273 | let (mut var1, mut var2, mut t): (f64, f64, f64); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | let mut raw_temp: i32 = ((buf[0] as i32) << 12) + ((buf[1] as i32) << 4) + ((buf[2] as i32) >> 4); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut register: u8 = 0x88; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:220:14 [INFO] [stdout] | [INFO] [stdout] 220 | let (mut var1, mut var2, mut t): (i32, i32, i32); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:220:24 [INFO] [stdout] | [INFO] [stdout] 220 | let (mut var1, mut var2, mut t): (i32, i32, i32); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:220:34 [INFO] [stdout] | [INFO] [stdout] 220 | let (mut var1, mut var2, mut t): (i32, i32, i32); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:273:14 [INFO] [stdout] | [INFO] [stdout] 273 | let (mut var1, mut var2, mut t): (f64, f64, f64); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:273:24 [INFO] [stdout] | [INFO] [stdout] 273 | let (mut var1, mut var2, mut t): (f64, f64, f64); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:273:34 [INFO] [stdout] | [INFO] [stdout] 273 | let (mut var1, mut var2, mut t): (f64, f64, f64); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | let mut raw_temp: i32 = ((buf[0] as i32) << 12) + ((buf[1] as i32) << 4) + ((buf[2] as i32) >> 4); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:428:9 [INFO] [stdout] | [INFO] [stdout] 428 | self.temperature_celsius(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 428 | let _ = self.temperature_celsius(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/lib.rs:458:25 [INFO] [stdout] | [INFO] [stdout] 458 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/lib.rs:461:17 [INFO] [stdout] | [INFO] [stdout] 461 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 40 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:428:9 [INFO] [stdout] | [INFO] [stdout] 428 | self.temperature_celsius(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 428 | let _ = self.temperature_celsius(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | for i in 1..400{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | for i in 1..400{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.14s [INFO] running `Command { std: "docker" "inspect" "4f145f19ad8befc87d8bc6ee643e575feb923a9087ef7dc1dd047ca28c0481dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f145f19ad8befc87d8bc6ee643e575feb923a9087ef7dc1dd047ca28c0481dd", kill_on_drop: false }` [INFO] [stdout] 4f145f19ad8befc87d8bc6ee643e575feb923a9087ef7dc1dd047ca28c0481dd