[INFO] fetching crate i2cdev2 0.4.0... [INFO] checking i2cdev2-0.4.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate i2cdev2 0.4.0 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate i2cdev2 0.4.0 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate i2cdev2 0.4.0 [INFO] finished tweaking crates.io crate i2cdev2 0.4.0 [INFO] tweaked toml for crates.io crate i2cdev2 0.4.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 60 packages to latest compatible versions [INFO] [stderr] Adding aho-corasick v0.6.10 (available: v1.1.3) [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding cargo_metadata v0.14.2 (available: v0.18.1) [INFO] [stderr] Adding cfg-if v0.1.10 (available: v1.0.0) [INFO] [stderr] Adding docopt v0.8.3 (available: v1.1.1) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding nix v0.11.1 (available: v0.29.0) [INFO] [stderr] Adding pulldown-cmark v0.9.6 (available: v0.12.1) [INFO] [stderr] Adding regex v0.2.11 (available: v1.10.6) [INFO] [stderr] Adding regex-syntax v0.5.6 (available: v0.8.4) [INFO] [stderr] Adding strsim v0.6.0 (available: v0.11.1) [INFO] [stderr] Adding thread_local v0.3.6 (available: v1.1.8) [INFO] [stderr] Adding ucd-util v0.1.10 (available: v0.2.1) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a4ef245ec3e107caae18f479a1d8a3fd3b3de5bbb82ddb5b1f8c2650e6bfe720 [INFO] running `Command { std: "docker" "start" "-a" "a4ef245ec3e107caae18f479a1d8a3fd3b3de5bbb82ddb5b1f8c2650e6bfe720", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4ef245ec3e107caae18f479a1d8a3fd3b3de5bbb82ddb5b1f8c2650e6bfe720", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4ef245ec3e107caae18f479a1d8a3fd3b3de5bbb82ddb5b1f8c2650e6bfe720", kill_on_drop: false }` [INFO] [stdout] a4ef245ec3e107caae18f479a1d8a3fd3b3de5bbb82ddb5b1f8c2650e6bfe720 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 699a747794b5bba30a26a601e731b5e6acf941c70012bd6c10f634f6301e6a82 [INFO] running `Command { std: "docker" "start" "-a" "699a747794b5bba30a26a601e731b5e6acf941c70012bd6c10f634f6301e6a82", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling pulldown-cmark v0.9.6 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling bytecount v0.6.8 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling nix v0.11.1 [INFO] [stderr] Checking ucd-util v0.1.10 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Checking utf8-ranges v1.0.5 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking strsim v0.6.0 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking tempfile v3.12.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking cargo-platform v0.1.8 [INFO] [stderr] Checking semver v1.0.23 [INFO] [stderr] Checking camino v1.1.9 [INFO] [stderr] Checking docopt v0.8.3 [INFO] [stderr] Checking cargo_metadata v0.14.2 [INFO] [stderr] Checking skeptic v0.13.7 [INFO] [stderr] Compiling i2cdev2 v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/ffi.rs:437:37 [INFO] [stdout] | [INFO] [stdout] 437 | -> Result<(c_int), I2CError> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 437 - -> Result<(c_int), I2CError> { [INFO] [stdout] 437 + -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/ffi.rs:437:37 [INFO] [stdout] | [INFO] [stdout] 437 | -> Result<(c_int), I2CError> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 437 - -> Result<(c_int), I2CError> { [INFO] [stdout] 437 + -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/ffi.rs:447:62 [INFO] [stdout] | [INFO] [stdout] 447 | ... msgs: &mut Vec) -> Result<(i32), I2CError> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 447 - msgs: &mut Vec) -> Result<(i32), I2CError> { [INFO] [stdout] 447 + msgs: &mut Vec) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/ffi.rs:447:62 [INFO] [stdout] | [INFO] [stdout] 447 | ... msgs: &mut Vec) -> Result<(i32), I2CError> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 447 - msgs: &mut Vec) -> Result<(i32), I2CError> { [INFO] [stdout] 447 + msgs: &mut Vec) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | fn cause(&self) -> Option<&Error> { [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] 84 | fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/linux.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | fn cause(&self) -> Option<&Error> { [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] 84 | fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/linux.rs:79:43 [INFO] [stdout] | [INFO] [stdout] 79 | LinuxI2CError::Io(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/linux.rs:79:43 [INFO] [stdout] | [INFO] [stdout] 79 | LinuxI2CError::Io(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/linux.rs:80:44 [INFO] [stdout] | [INFO] [stdout] 80 | LinuxI2CError::Nix(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/linux.rs:80:44 [INFO] [stdout] | [INFO] [stdout] 80 | LinuxI2CError::Nix(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `i2cdev` [INFO] [stdout] --> examples/pca9956b.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | extern crate i2cdev; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `i2cdev` [INFO] [stdout] --> examples/sensors.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | extern crate i2cdev; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `i2cdev` [INFO] [stdout] --> examples/nunchuck.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | extern crate i2cdev; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `taret_os` [INFO] [stdout] --> examples/nunchuck.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(any(target_os = "linux", taret_os = "android"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(taret_os, values("android"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(taret_os, values(\"android\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] help: there is a config with a similar name and value [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(any(target_os = "linux", target_os = "android"))] [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> examples/nunchuck.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | try!( [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] --> examples/sensors.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | try!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `i2cdev2` (example "pca9956b") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> examples/nunchuck.rs:56:36 [INFO] [stdout] | [INFO] [stdout] 56 | fn cause(&self) -> Option<&Error> { [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] 56 | fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `T` [INFO] [stdout] --> examples/nunchuck.rs:108:57 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn new(i2cdev: T) -> Result, T::Error> { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `T` [INFO] [stdout] --> examples/nunchuck.rs:120:49 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn init(&mut self) -> Result<(), T::Error> { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `T` [INFO] [stdout] --> examples/nunchuck.rs:129:76 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn read(&mut self) -> Result> { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LinuxI2CDevice` [INFO] [stdout] --> examples/sensors.rs:485:27 [INFO] [stdout] | [INFO] [stdout] 485 | let mpl115a2_i2cdev = LinuxI2CDevice::new(device, MPL115A2_I2C_ADDR).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `LinuxI2CDevice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LinuxI2CDevice` [INFO] [stdout] --> examples/nunchuck.rs:224:18 [INFO] [stdout] | [INFO] [stdout] 224 | let i2cdev = LinuxI2CDevice::new(device, NUNCHUCK_SLAVE_ADDR).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `LinuxI2CDevice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LinuxI2CDevice` [INFO] [stdout] --> examples/sensors.rs:486:26 [INFO] [stdout] | [INFO] [stdout] 486 | let adxl345_i2cdev = LinuxI2CDevice::new(device, 0x53).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `LinuxI2CDevice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0220, E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0220`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `i2cdev2` (example "sensors") due to 4 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `i2cdev2` (example "nunchuck") due to 6 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "699a747794b5bba30a26a601e731b5e6acf941c70012bd6c10f634f6301e6a82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "699a747794b5bba30a26a601e731b5e6acf941c70012bd6c10f634f6301e6a82", kill_on_drop: false }` [INFO] [stdout] 699a747794b5bba30a26a601e731b5e6acf941c70012bd6c10f634f6301e6a82