[INFO] fetching crate totp-rs 0.2.3... [INFO] testing totp-rs-0.2.3 against master#28742a1146f10a4f09369baad027a464acb7a766 for pr-71274 [INFO] extracting crate totp-rs 0.2.3 into /workspace/builds/worker-10/source [INFO] validating manifest of crates.io crate totp-rs 0.2.3 on toolchain 28742a1146f10a4f09369baad027a464acb7a766 [INFO] running `"/workspace/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate totp-rs 0.2.3 [INFO] finished tweaking crates.io crate totp-rs 0.2.3 [INFO] tweaked toml for crates.io crate totp-rs 0.2.3 written to /workspace/builds/worker-10/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4206ef3e5d7d72802eba62f4e0e789eb7a15300c49cf2e741a1df8dd4beab9e3 [INFO] running `"docker" "start" "-a" "4206ef3e5d7d72802eba62f4e0e789eb7a15300c49cf2e741a1df8dd4beab9e3"` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling adler32 v1.0.4 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling bytemuck v1.2.0 [INFO] [stderr] Compiling base32 v0.4.0 [INFO] [stderr] Compiling checked_int_cast v1.0.0 [INFO] [stderr] Compiling base64 v0.12.0 [INFO] [stderr] Compiling ring v0.16.12 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling miniz_oxide v0.3.6 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling deflate v0.8.4 [INFO] [stderr] Compiling tiff v0.4.0 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling crossbeam-queue v0.2.1 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling png v0.16.3 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Compiling rayon v1.3.0 [INFO] [stderr] Compiling otpauth v0.4.1 [INFO] [stderr] Compiling jpeg-decoder v0.1.18 [INFO] [stderr] Compiling image v0.23.4 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Compiling qrcode v0.12.0 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Compiling totp-rs v0.2.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 27s [INFO] running `"docker" "inspect" "4206ef3e5d7d72802eba62f4e0e789eb7a15300c49cf2e741a1df8dd4beab9e3"` [INFO] running `"docker" "rm" "-f" "4206ef3e5d7d72802eba62f4e0e789eb7a15300c49cf2e741a1df8dd4beab9e3"` [INFO] [stdout] 4206ef3e5d7d72802eba62f4e0e789eb7a15300c49cf2e741a1df8dd4beab9e3 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "test" "--frozen" "--no-run"` [INFO] [stdout] ec65d56dbd73951707cf8d4e61304a4659981632b53d0602c7979c3295333e6a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "ec65d56dbd73951707cf8d4e61304a4659981632b53d0602c7979c3295333e6a"` [INFO] [stderr] Compiling totp-rs v0.2.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.77s [INFO] running `"docker" "inspect" "ec65d56dbd73951707cf8d4e61304a4659981632b53d0602c7979c3295333e6a"` [INFO] running `"docker" "rm" "-f" "ec65d56dbd73951707cf8d4e61304a4659981632b53d0602c7979c3295333e6a"` [INFO] [stdout] ec65d56dbd73951707cf8d4e61304a4659981632b53d0602c7979c3295333e6a [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "test" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9fd1992451b082f1bc65a5f312f3fc85e54460787befd763de0c00b1301a8c71 [INFO] running `"docker" "start" "-a" "9fd1992451b082f1bc65a5f312f3fc85e54460787befd763de0c00b1301a8c71"` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.46s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/totp_rs-0dced06f9dea9680 [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Doc-tests totp-rs [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 5) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 5) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | use totp_rs::{TOTP, Algorithm}; [INFO] [stdout] 5 | | use std::time::SystemTime; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 9 | | let time = SystemTime::now().duration_since(SystemTime::UNIX_EPOCH)?.as_secs(); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 13 | | println!("{}", token); [INFO] [stdout] 14 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 5) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "9fd1992451b082f1bc65a5f312f3fc85e54460787befd763de0c00b1301a8c71"` [INFO] running `"docker" "rm" "-f" "9fd1992451b082f1bc65a5f312f3fc85e54460787befd763de0c00b1301a8c71"` [INFO] [stdout] 9fd1992451b082f1bc65a5f312f3fc85e54460787befd763de0c00b1301a8c71