[INFO] fetching crate libgatekeeper-sys 0.6.0... [INFO] testing libgatekeeper-sys-0.6.0 against 1.91.0 for beta-1.92-2 [INFO] extracting crate libgatekeeper-sys 0.6.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate libgatekeeper-sys 0.6.0 [INFO] finished tweaking crates.io crate libgatekeeper-sys 0.6.0 [INFO] tweaked toml for crates.io crate libgatekeeper-sys 0.6.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate libgatekeeper-sys 0.6.0 on toolchain 1.91.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.91.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate libgatekeeper-sys 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" "+1.91.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.132 [INFO] [stderr] Downloaded openssl-sys v0.9.75 [INFO] [stderr] Downloaded openssl v0.10.41 [INFO] [stderr] Downloaded unicode-ident v1.0.3 [INFO] [stderr] Downloaded apdu-core v0.3.0 [INFO] [stderr] Downloaded once_cell v1.13.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8dbf9c04741e39a21f4834f46c05439b8f9d5d1a40c608c5a7273761669ff687 [INFO] running `Command { std: "docker" "start" "-a" "8dbf9c04741e39a21f4834f46c05439b8f9d5d1a40c608c5a7273761669ff687", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8dbf9c04741e39a21f4834f46c05439b8f9d5d1a40c608c5a7273761669ff687", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8dbf9c04741e39a21f4834f46c05439b8f9d5d1a40c608c5a7273761669ff687", kill_on_drop: false }` [INFO] [stdout] 8dbf9c04741e39a21f4834f46c05439b8f9d5d1a40c608c5a7273761669ff687 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e178fe0150df52bb97477fe98b8b13fea532cca05e5c81f336d336edffc79d84 [INFO] running `Command { std: "docker" "start" "-a" "e178fe0150df52bb97477fe98b8b13fea532cca05e5c81f336d336edffc79d84", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.41 [INFO] [stderr] Compiling once_cell v1.13.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling apdu-core v0.3.0 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling openssl-sys v0.9.75 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling libgatekeeper-sys v0.6.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:57:30 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn gatekeeper_device(&mut self, conn_str: String) -> Option { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` implied by `#[warn(warnings)]` [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 57 | pub fn gatekeeper_device(&mut self, conn_str: String) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | fn inner_device(&self, conn_str: String) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 61 | fn inner_device(&self, conn_str: String) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:130:22 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn first_tag(&self) -> Option { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 130 | pub fn first_tag(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.80s [INFO] running `Command { std: "docker" "inspect" "e178fe0150df52bb97477fe98b8b13fea532cca05e5c81f336d336edffc79d84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e178fe0150df52bb97477fe98b8b13fea532cca05e5c81f336d336edffc79d84", kill_on_drop: false }` [INFO] [stdout] e178fe0150df52bb97477fe98b8b13fea532cca05e5c81f336d336edffc79d84 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1.91.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 01e9adb1f05135000f6a4694a5642ddda59cbef26602fd819feb5bc2e20d40ec [INFO] running `Command { std: "docker" "start" "-a" "01e9adb1f05135000f6a4694a5642ddda59cbef26602fd819feb5bc2e20d40ec", kill_on_drop: false }` [INFO] [stderr] Compiling libgatekeeper-sys v0.6.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:57:30 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn gatekeeper_device(&mut self, conn_str: String) -> Option { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` implied by `#[warn(warnings)]` [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 57 | pub fn gatekeeper_device(&mut self, conn_str: String) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | fn inner_device(&self, conn_str: String) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 61 | fn inner_device(&self, conn_str: String) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:130:22 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn first_tag(&self) -> Option { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 130 | pub fn first_tag(&self) -> Option> { [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] --> examples/issue_tag.rs:7:36 [INFO] [stdout] | [INFO] [stdout] 7 | Err(e) => println!("{}", e.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> examples/issue_tag.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | let mut device = nfc.gatekeeper_device().ok_or("failed to open NFC device")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^-- argument #1 of type `String` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn gatekeeper_device(&mut self, conn_str: String) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 13 | let mut device = nfc.gatekeeper_device(/* String */).ok_or("failed to open NFC device")?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 10 arguments but 8 arguments were supplied [INFO] [stdout] --> examples/issue_tag.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | let mut realm = Realm::new(0, "Door", [INFO] [stdout] | _____________________^^^^^^^^^^- [INFO] [stdout] 16 | | "7c5d9984-8392-4dce-8dc1-75791fa6bf31", [INFO] [stdout] 17 | | "c789aef4d156b9e1a23bcbe66742b4eb", [INFO] [stdout] 18 | | "53e49fedce8a1fad6be924cb51f79bfe", [INFO] [stdout] ... | [INFO] [stdout] 21 | | "-----BEGIN EC PRIVATE KEY-----\nMIGkAgEBBDCYfNkZFFqtgPRwxWy3SWfNvznHO0V5CNOlysmE3jXOGtO/99XpmKx4\nAsPFrMm6iragBwYFK4EEACKhZANiAA... [INFO] [stdout] 22 | | ).ok_or("failed to create realm")?; [INFO] [stdout] | |_____- two arguments of type `&str` and `&str` are missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:470:12 [INFO] [stdout] | [INFO] [stdout] 470 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 15 - let mut realm = Realm::new(0, "Door", [INFO] [stdout] 16 - "7c5d9984-8392-4dce-8dc1-75791fa6bf31", [INFO] [stdout] 17 - "c789aef4d156b9e1a23bcbe66742b4eb", [INFO] [stdout] 18 - "53e49fedce8a1fad6be924cb51f79bfe", [INFO] [stdout] 19 - "96e874711115cde3ca530c9a15c4838a", [INFO] [stdout] 20 - "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEUSCSsyBgHLLs9d5+p+cTGljR9aeFZ19D\ngBkuomyNPEy2rYI/0g9jeftRkkRXlZNQG/jk8PNtKuYoq4cKTYnMiZEiIcHq6fRi\nusrdYdkrS2iau+xENfzkkouvYJwarMtu\n-----END PUBLIC KEY-----\n", [INFO] [stdout] 21 - "-----BEGIN EC PRIVATE KEY-----\nMIGkAgEBBDCYfNkZFFqtgPRwxWy3SWfNvznHO0V5CNOlysmE3jXOGtO/99XpmKx4\nAsPFrMm6iragBwYFK4EEACKhZANiAARRIJKzIGAcsuz13n6n5xMaWNH1p4VnX0OA\nGS6ibI08TLatgj/SD2N5+1GSRFeVk1Ab+OTw820q5iirhwpNicyJkSIhwerp9GK6\nyt1h2StLaJq77EQ1/OSSi69gnBqsy24=\n-----END EC PRIVATE KEY-----\n", [INFO] [stdout] 22 - ).ok_or("failed to create realm")?; [INFO] [stdout] 15 + let mut realm = Realm::new(0, "Door", "7c5d9984-8392-4dce-8dc1-75791fa6bf31", "c789aef4d156b9e1a23bcbe66742b4eb", "53e49fedce8a1fad6be924cb51f79bfe", "96e874711115cde3ca530c9a15c4838a", "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEUSCSsyBgHLLs9d5+p+cTGljR9aeFZ19D\ngBkuomyNPEy2rYI/0g9jeftRkkRXlZNQG/jk8PNtKuYoq4cKTYnMiZEiIcHq6fRi\nusrdYdkrS2iau+xENfzkkouvYJwarMtu\n-----END PUBLIC KEY-----\n", "-----BEGIN EC PRIVATE KEY-----\nMIGkAgEBBDCYfNkZFFqtgPRwxWy3SWfNvznHO0V5CNOlysmE3jXOGtO/99XpmKx4\nAsPFrMm6iragBwYFK4EEACKhZANiAARRIJKzIGAcsuz13n6n5xMaWNH1p4VnX0OA\nGS6ibI08TLatgj/SD2N5+1GSRFeVk1Ab+OTw820q5iirhwpNicyJkSIhwerp9GK6\nyt1h2StLaJq77EQ1/OSSi69gnBqsy24=\n-----END EC PRIVATE KEY-----\n", /* &str */, /* &str */).ok_or("failed to create realm")?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `libgatekeeper-sys` (example "read_tag") due to 1 previous error [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> examples/read_tag.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | .gatekeeper_device() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^-- argument #1 of type `String` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn gatekeeper_device(&mut self, conn_str: String) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 7 | .gatekeeper_device(/* String */) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `libgatekeeper-sys` (example "issue_tag_unsafe") due to 3 previous errors [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> examples/issue_tag_unsafe.rs:63:28 [INFO] [stdout] | [INFO] [stdout] 63 | let issue_result = issue_tag(tag, system_secret.as_ptr(), realms as *mut _, 1); [INFO] [stdout] | ^^^^^^^^^ - argument #4 of type `*mut *mut c_void` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn issue_tag( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 63 | let issue_result = issue_tag(tag, system_secret.as_ptr(), realms as *mut _, /* *mut *mut c_void */, 1); [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `libgatekeeper-sys` (example "issue_tag") due to 4 previous errors; 1 warning emitted [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/issue_tag_unsafe.rs:70:35 [INFO] [stdout] | [INFO] [stdout] 70 | let authenticate_result = authenticate_tag(tag, realm); [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------ argument #3 of type `*mut u8` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn authenticate_tag( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 70 | let authenticate_result = authenticate_tag(tag, realm, /* *mut u8 */); [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0606]: casting `&mut *mut c_void` as `*mut i8` is invalid [INFO] [stdout] --> examples/issue_tag_unsafe.rs:63:67 [INFO] [stdout] | [INFO] [stdout] 63 | let issue_result = issue_tag(tag, system_secret.as_ptr(), realms as *mut _, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0606. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> examples/issue_tag.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | tag.issue("cdfc36ef1b3d87a81a4114cb75459e27", &mut realm) [INFO] [stdout] | ^^^^^------------------------------------------------ argument #3 of type `Vec<&mut Realm>` is missing [INFO] [stdout] | [INFO] [stdout] note: expected `Option<&str>`, found `&mut Realm` [INFO] [stdout] --> examples/issue_tag.rs:24:51 [INFO] [stdout] | [INFO] [stdout] 24 | tag.issue("cdfc36ef1b3d87a81a4114cb75459e27", &mut realm) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: expected enum `Option<&str>` [INFO] [stdout] found mutable reference `&mut Realm` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:414:12 [INFO] [stdout] | [INFO] [stdout] 414 | pub fn issue( [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 24 - tag.issue("cdfc36ef1b3d87a81a4114cb75459e27", &mut realm) [INFO] [stdout] 24 + tag.issue("cdfc36ef1b3d87a81a4114cb75459e27", /* Option<&str> */, /* Vec<&mut Realm> */) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `authenticate` found for struct `FreefareNfcTag<'a>` in the current scope [INFO] [stdout] --> examples/issue_tag.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | tag.authenticate(&mut realm) [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `FreefareNfcTag<'_>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | fn authenticate( [INFO] [stdout] | ------------ the method is available for `FreefareNfcTag<'_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `NfcTag` which provides `authenticate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use libgatekeeper_sys::NfcTag; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:57:30 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn gatekeeper_device(&mut self, conn_str: String) -> Option { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` implied by `#[warn(warnings)]` [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 57 | pub fn gatekeeper_device(&mut self, conn_str: String) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | fn inner_device(&self, conn_str: String) -> Option { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 61 | fn inner_device(&self, conn_str: String) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:130:22 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn first_tag(&self) -> Option { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 130 | pub fn first_tag(&self) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustcj9VrSb/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bdynamic" "-lgatekeeper" "-lnfc" "-lfreefare" "-Wl,-Bstatic" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libtest-*,libgetopts-*,librustc_std_workspace_std-*}.rlib" "/opt/rustwide/target/debug/deps/{librand-56570e0c970f2ada,librand_chacha-92b53a3edfa1ebb1,libppv_lite86-30c4d0bc247bcdde,librand_core-5ec83db0305e8601,libgetrandom-745f4facc3b5d98a,libopenssl-0a82e6d5fd8a09fc,libonce_cell-b16ce1989547b06d,libbitflags-a56917bef97924b7,libforeign_types-e670df775a782d7c,libforeign_types_shared-752b91f79ab70125,libcfg_if-6a7eff3bb9b3cc11,libopenssl_sys-4762ffaa149a17b5,liblibc-870bb679e44a6825,libapdu_core-0b2f3e00536f4571}.rlib" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcj9VrSb/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/libgatekeeper_sys-848dc051a7f37bf7" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: unable to find library -lgatekeeper [INFO] [stdout] rust-lld: error: unable to find library -lnfc [INFO] [stdout] rust-lld: error: unable to find library -lfreefare [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `libgatekeeper-sys` (lib test) due to 1 previous error; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "01e9adb1f05135000f6a4694a5642ddda59cbef26602fd819feb5bc2e20d40ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01e9adb1f05135000f6a4694a5642ddda59cbef26602fd819feb5bc2e20d40ec", kill_on_drop: false }` [INFO] [stdout] 01e9adb1f05135000f6a4694a5642ddda59cbef26602fd819feb5bc2e20d40ec