[INFO] fetching crate nfc1 0.6.0... [INFO] checking nfc1-0.6.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate nfc1 0.6.0 into /workspace/builds/worker-0-tc1/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-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nfc1 0.6.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded des v0.8.1 [INFO] [stderr] Downloaded mrtd1 v0.1.2 [INFO] [stderr] Downloaded usb-compat-01-sys v0.2.6 [INFO] [stderr] Downloaded windows-result v0.3.3 [INFO] [stderr] Downloaded iso7816-tlv v0.4.4 [INFO] [stderr] Downloaded windows-core v0.61.1 [INFO] [stderr] Downloaded nfc1 v0.5.2 [INFO] [stderr] Downloaded winreg v0.5.1 [INFO] [stderr] Downloaded windows-strings v0.4.1 [INFO] [stderr] Downloaded find-winsdk v0.2.0 [INFO] [stderr] Downloaded nfc1-sys v0.3.9 [INFO] [stderr] Downloaded libusb1-sys v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8bd8518d7055d57cc1f603b8898cb14e3774afcb68f63abcf59c6f3b18a04104 [INFO] running `Command { std: "docker" "start" "-a" "8bd8518d7055d57cc1f603b8898cb14e3774afcb68f63abcf59c6f3b18a04104", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8bd8518d7055d57cc1f603b8898cb14e3774afcb68f63abcf59c6f3b18a04104", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bd8518d7055d57cc1f603b8898cb14e3774afcb68f63abcf59c6f3b18a04104", kill_on_drop: false }` [INFO] [stdout] 8bd8518d7055d57cc1f603b8898cb14e3774afcb68f63abcf59c6f3b18a04104 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ae0f9f75ad244fde59e3503950240258894a67bef4264b7a60fb76f9f3fdaee9 [INFO] running `Command { std: "docker" "start" "-a" "ae0f9f75ad244fde59e3503950240258894a67bef4264b7a60fb76f9f3fdaee9", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling prettyplease v0.2.32 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libloading v0.8.7 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling bindgen v0.65.1 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling cc v1.2.22 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking os_str_bytes v6.6.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking iso7816-tlv v0.4.4 [INFO] [stderr] Checking hex_fmt v0.3.0 [INFO] [stderr] Checking textwrap v0.16.2 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling libusb1-sys v0.5.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-padding v0.3.3 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Checking des v0.8.1 [INFO] [stderr] Checking cbc v0.1.2 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling regex v1.11.1 [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[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] [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] [stderr] error: could not compile `nfc1` (example "read_mrtd") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] running `Command { std: "docker" "inspect" "ae0f9f75ad244fde59e3503950240258894a67bef4264b7a60fb76f9f3fdaee9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae0f9f75ad244fde59e3503950240258894a67bef4264b7a60fb76f9f3fdaee9", kill_on_drop: false }` [INFO] [stdout] ae0f9f75ad244fde59e3503950240258894a67bef4264b7a60fb76f9f3fdaee9