[INFO] fetching crate nfc1 0.6.0... [INFO] checking nfc1-0.6.0 against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] extracting crate nfc1 0.6.0 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate nfc1 0.6.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate nfc1 0.6.0 [INFO] tweaked toml for crates.io crate nfc1 0.6.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate nfc1 0.6.0 on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate nfc1 0.6.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c37a7bfe5b7d5acee14cc4824fe4b0ee1ca0e25dac21ae3767b5f79b93c58597 [INFO] running `Command { std: "docker" "start" "-a" "c37a7bfe5b7d5acee14cc4824fe4b0ee1ca0e25dac21ae3767b5f79b93c58597", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c37a7bfe5b7d5acee14cc4824fe4b0ee1ca0e25dac21ae3767b5f79b93c58597", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c37a7bfe5b7d5acee14cc4824fe4b0ee1ca0e25dac21ae3767b5f79b93c58597", kill_on_drop: false }` [INFO] [stdout] c37a7bfe5b7d5acee14cc4824fe4b0ee1ca0e25dac21ae3767b5f79b93c58597 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b915ad1cd9ae42972182e8006f7687c42ec00f689aa00569a8455f91ce8451c7 [INFO] running `Command { std: "docker" "start" "-a" "b915ad1cd9ae42972182e8006f7687c42ec00f689aa00569a8455f91ce8451c7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling prettyplease v0.2.32 [INFO] [stderr] Compiling cc v1.2.22 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling libloading v0.8.7 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling bindgen v0.65.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Checking block-padding v0.3.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling libusb1-sys v0.5.0 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking os_str_bytes v6.6.1 [INFO] [stderr] Checking iso7816-tlv v0.4.4 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking des v0.8.1 [INFO] [stderr] Checking cbc v0.1.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hex_fmt v0.3.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking textwrap v0.16.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling clap_derive v3.2.25 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Compiling usb-compat-01-sys v0.2.6 [INFO] [stderr] Compiling nfc1-sys v0.3.9 [INFO] [stderr] Checking nfc1 v0.5.2 [INFO] [stderr] Checking nfc1 v0.6.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking mrtd1 v0.1.2 [INFO] [stdout] error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied [INFO] [stdout] --> examples/dl533n_cs_test_capabilities.rs:88:74 [INFO] [stdout] | [INFO] [stdout] 88 | fn dl533n_connect<'a>(context: &'a mut nfc1::Context) -> BoxResult> { [INFO] [stdout] | ^^^^^^---- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 lifetime arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 lifetime parameters [INFO] [stdout] --> /opt/rustwide/workdir/src/device.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Device { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pn53x_write_register` found for mutable reference `&mut Device` in the current scope [INFO] [stdout] --> examples/dl533n_cs_test_capabilities.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | device.pn53x_write_register(0xfff7, 0b00000001, 0x01)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `&mut Device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pn53x_write_register` found for mutable reference `&mut Device` in the current scope [INFO] [stdout] --> examples/dl533n_cs_test_capabilities.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | device.pn53x_write_register(0xfff7, 0b00000001, 0x00)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `&mut Device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pn53x_write_register` found for mutable reference `&mut Device` in the current scope [INFO] [stdout] --> examples/dl533n_cs_test_capabilities.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | device.pn53x_write_register(0xffb0, 0b00100000, 0x20)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `&mut Device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pn53x_write_register` found for mutable reference `&mut Device` in the current scope [INFO] [stdout] --> examples/dl533n_cs_test_capabilities.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | device.pn53x_write_register(0xffb0, 0b00100000, 0x00)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `&mut Device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pn53x_write_register` found for mutable reference `&mut Device` in the current scope [INFO] [stdout] --> examples/dl533n_cs_test_capabilities.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | device.pn53x_write_register(0xffb0, 0b00010000, 0x10)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `&mut Device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pn53x_write_register` found for mutable reference `&mut Device` in the current scope [INFO] [stdout] --> examples/dl533n_cs_test_capabilities.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | device.pn53x_write_register(0xffb0, 0b00010000, 0x00)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `&mut Device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pn53x_write_register` found for mutable reference `&mut Device` in the current scope [INFO] [stdout] --> examples/dl533n_cs_test_capabilities.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | device.pn53x_write_register(0xffb0, 0xff, 0x00)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `&mut Device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pn53x_write_register` found for mutable reference `&mut Device` in the current scope [INFO] [stdout] --> examples/dl533n_cs_test_capabilities.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | device.pn53x_write_register(0xfff7, 0xff, 0x00)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `&mut Device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pn53x_write_register` found for mutable reference `&mut Device` in the current scope [INFO] [stdout] --> examples/dl533n_cs_test_capabilities.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | device.pn53x_write_register(0x6106, 0xff, 0x1b)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `&mut Device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `nfc1` (example "dl533n_cs_test_capabilities") due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/read_mrtd.rs:68:48 [INFO] [stdout] | [INFO] [stdout] 68 | let mut bac_res = mrtd1::auth::bac::handshake(&mut device, &mrz)?; [INFO] [stdout] | --------------------------- ^^^^^^^^^^^ expected `&mut Device<'_>`, found `&mut Device` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: two different versions of crate `nfc1` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/workdir/src/device.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Device { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ this is the found type `Device` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/nfc1-0.5.2/src/device.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Device<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ this is the expected type `nfc1::device::Device` [INFO] [stdout] | [INFO] [stdout] ::: examples/read_mrtd.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use mrtd1::mrz::normalize_mrz_string; [INFO] [stdout] | ----- one version of crate `nfc1` used here, as a dependency of crate `mrtd1` [INFO] [stdout] ... [INFO] [stdout] 28 | let mut context = nfc1::Context::new()?; [INFO] [stdout] | ---- one version of crate `nfc1` used here, as a direct dependency of the current crate [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mrtd1-0.1.2/src/auth/bac.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn handshake(device: &mut nfc1::Device, mrz: &Mrz) -> BoxResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/read_mrtd.rs:73:42 [INFO] [stdout] | [INFO] [stdout] 73 | let contents = mrtd1::files::read_file(&mut device, &bac_res.ks_mac, &bac_res.ks_enc, &mut bac_res.ssc, file)?; [INFO] [stdout] | ----------------------- ^^^^^^^^^^^ expected `&mut Device<'_>`, found `&mut Device` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: two different versions of crate `nfc1` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/workdir/src/device.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Device { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ this is the found type `Device` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/nfc1-0.5.2/src/device.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Device<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ this is the expected type `nfc1::device::Device` [INFO] [stdout] | [INFO] [stdout] ::: examples/read_mrtd.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use mrtd1::mrz::normalize_mrz_string; [INFO] [stdout] | ----- one version of crate `nfc1` used here, as a dependency of crate `mrtd1` [INFO] [stdout] ... [INFO] [stdout] 28 | let mut context = nfc1::Context::new()?; [INFO] [stdout] | ---- one version of crate `nfc1` used here, as a direct dependency of the current crate [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mrtd1-0.1.2/src/files/mod.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn read_file(device: &mut nfc1::Device, ks_mac: &[u8], ks_enc: &[u8], ssc: &mut u64, file: &File) -> BoxResult> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `nfc1` (example "read_mrtd") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "b915ad1cd9ae42972182e8006f7687c42ec00f689aa00569a8455f91ce8451c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b915ad1cd9ae42972182e8006f7687c42ec00f689aa00569a8455f91ce8451c7", kill_on_drop: false }` [INFO] [stdout] b915ad1cd9ae42972182e8006f7687c42ec00f689aa00569a8455f91ce8451c7