[INFO] fetching crate lockbook_core 3.3.6... [INFO] checking lockbook_core-3.3.6 against try#ddfd70ee3c3748e597b32f416b0d15a4f6e37685 for pr-87050 [INFO] extracting crate lockbook_core 3.3.6 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate lockbook_core 3.3.6 on toolchain ddfd70ee3c3748e597b32f416b0d15a4f6e37685 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ddfd70ee3c3748e597b32f416b0d15a4f6e37685" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate lockbook_core 3.3.6 [INFO] finished tweaking crates.io crate lockbook_core 3.3.6 [INFO] tweaked toml for crates.io crate lockbook_core 3.3.6 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ddfd70ee3c3748e597b32f416b0d15a4f6e37685" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ddfd70ee3c3748e597b32f416b0d15a4f6e37685" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rsa v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+ddfd70ee3c3748e597b32f416b0d15a4f6e37685" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d4ee84c7b4abae7e46cf35fd4b547831a222fce4b8e729da6c70ab1b8c01ed93 [INFO] running `Command { std: "docker" "start" "-a" "d4ee84c7b4abae7e46cf35fd4b547831a222fce4b8e729da6c70ab1b8c01ed93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d4ee84c7b4abae7e46cf35fd4b547831a222fce4b8e729da6c70ab1b8c01ed93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4ee84c7b4abae7e46cf35fd4b547831a222fce4b8e729da6c70ab1b8c01ed93", kill_on_drop: false }` [INFO] [stdout] d4ee84c7b4abae7e46cf35fd4b547831a222fce4b8e729da6c70ab1b8c01ed93 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+ddfd70ee3c3748e597b32f416b0d15a4f6e37685" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f857e5a95191fb412cb6342c016a129313547e0d3f99871148e1e0b094835ee5 [INFO] running `Command { std: "docker" "start" "-a" "f857e5a95191fb412cb6342c016a129313547e0d3f99871148e1e0b094835ee5", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Compiling num-bigint-dig v0.6.1 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Checking crc32fast v1.2.1 [INFO] [stderr] Checking encoding_rs v0.8.28 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking generic-array v0.12.4 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking want v0.2.0 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking uuid v0.7.4 [INFO] [stderr] Checking parking_lot_core v0.7.2 [INFO] [stderr] Checking block-cipher-trait v0.6.2 [INFO] [stderr] Checking universal-hash v0.3.0 [INFO] [stderr] Checking aead v0.2.0 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling openssl-sys v0.9.65 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking aes-soft v0.3.3 [INFO] [stderr] Checking polyval v0.3.3 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking aes v0.3.2 [INFO] [stderr] Checking ghash v0.2.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking h2 v0.1.26 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking backtrace v0.3.60 [INFO] [stderr] Checking flate2 v1.0.20 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Compiling openssl v0.10.35 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking sled v0.31.0 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking hyper v0.12.36 [INFO] [stderr] Compiling synstructure v0.12.5 [INFO] [stderr] Checking hyper-tls v0.3.2 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling zeroize_derive v1.1.0 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking zeroize v1.4.1 [INFO] [stderr] Checking aes-gcm v0.5.0 [INFO] [stderr] Checking serde v1.0.126 [INFO] [stderr] Checking serde_json v1.0.64 [INFO] [stderr] Checking serde_urlencoded v0.5.5 [INFO] [stderr] Checking cookie_store v0.7.0 [INFO] [stderr] Checking rsa v0.2.0 [INFO] [stderr] Checking reqwest v0.9.24 [INFO] [stderr] Checking lockbook_core v3.3.6 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/repo/account_repo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/repo/db_provider.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/repo/file_metadata_repo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/repo/file_repo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/service/file_encryption_service.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/service/auth_service.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `export` is private [INFO] [stdout] --> src/service/file_encryption_service.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::export::PhantomData; [INFO] [stdout] | ^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `export` is defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde-1.0.126/src/lib.rs:275:5 [INFO] [stdout] | [INFO] [stdout] 275 | use self::__private as export; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `export` is private [INFO] [stdout] --> src/service/file_service.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | use serde::export::PhantomData; [INFO] [stdout] | ^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `export` is defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde-1.0.126/src/lib.rs:275:5 [INFO] [stdout] | [INFO] [stdout] 275 | use self::__private as export; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `export` is private [INFO] [stdout] --> src/service/auth_service.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::export::PhantomData; [INFO] [stdout] | ^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `export` is defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde-1.0.126/src/lib.rs:275:5 [INFO] [stdout] | [INFO] [stdout] 275 | use self::__private as export; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/repo/account_repo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/repo/db_provider.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/repo/file_metadata_repo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/repo/file_repo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/service/file_encryption_service.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/service/auth_service.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `export` is private [INFO] [stdout] --> src/service/file_encryption_service.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::export::PhantomData; [INFO] [stdout] | ^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `export` is defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde-1.0.126/src/lib.rs:275:5 [INFO] [stdout] | [INFO] [stdout] 275 | use self::__private as export; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `export` is private [INFO] [stdout] --> src/service/file_service.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | use serde::export::PhantomData; [INFO] [stdout] | ^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `export` is defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde-1.0.126/src/lib.rs:275:5 [INFO] [stdout] | [INFO] [stdout] 275 | use self::__private as export; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `export` is private [INFO] [stdout] --> src/service/auth_service.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::export::PhantomData; [INFO] [stdout] | ^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `export` is defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde-1.0.126/src/lib.rs:275:5 [INFO] [stdout] | [INFO] [stdout] 275 | use self::__private as export; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/repo/account_repo.rs:33:30 [INFO] [stdout] | [INFO] [stdout] 31 | / fn get_account(db: &Db) -> Result { [INFO] [stdout] 32 | | let maybe_value = db.get(b"0")?; [INFO] [stdout] 33 | | let val = maybe_value?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 34 | | let account: Account = serde_json::from_slice(val.as_ref())?; [INFO] [stdout] 35 | | Ok(account) [INFO] [stdout] 36 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/repo/db_provider.rs:39:32 [INFO] [stdout] | [INFO] [stdout] 35 | / fn connect_to_db(_config: &Config) -> Result { [INFO] [stdout] 36 | | let dir = tempdir()?; [INFO] [stdout] 37 | | let dir_path = format!( [INFO] [stdout] 38 | | "{}/{}", [INFO] [stdout] 39 | | dir.path().to_str()?.to_string(), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 43 | | Ok(sled::open(dir_path)?) [INFO] [stdout] 44 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/repo/file_metadata_repo.rs:64:32 [INFO] [stdout] | [INFO] [stdout] 61 | / fn get(db: &Db, id: &String) -> Result { [INFO] [stdout] 62 | | let tree = db.open_tree(b"file_metadata")?; [INFO] [stdout] 63 | | let maybe_value = tree.get(id.as_bytes())?; [INFO] [stdout] 64 | | let value = maybe_value?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 67 | | Ok(file_metadata) [INFO] [stdout] 68 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/repo/file_repo.rs:35:32 [INFO] [stdout] | [INFO] [stdout] 32 | / fn get(db: &Db, id: &String) -> Result { [INFO] [stdout] 33 | | let tree = db.open_tree(b"files")?; [INFO] [stdout] 34 | | let maybe_value = tree.get(id.as_bytes())?; [INFO] [stdout] 35 | | let value = maybe_value?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 38 | | Ok(file) [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/service/file_encryption_service.rs:111:75 [INFO] [stdout] | [INFO] [stdout] 106 | / fn write_to_file( [INFO] [stdout] 107 | | author: &Account, [INFO] [stdout] 108 | | file_before: &EncryptedFile, [INFO] [stdout] 109 | | content: &DecryptedValue, [INFO] [stdout] 110 | | ) -> Result { [INFO] [stdout] 111 | | let encrypted_key = &file_before.access_keys.get(&author.username)?.access_key; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 122 | | }) [INFO] [stdout] 123 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/service/file_encryption_service.rs:129:69 [INFO] [stdout] | [INFO] [stdout] 125 | / fn read_file( [INFO] [stdout] 126 | | account: &Account, [INFO] [stdout] 127 | | file: &EncryptedFile, [INFO] [stdout] 128 | | ) -> Result { [INFO] [stdout] 129 | | let encrypted_key = &file.access_keys.get(&account.username)?.access_key; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 133 | | Ok(AES::decrypt(&file_encryption_key, &file.content)?) [INFO] [stdout] 134 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/service/auth_service.rs:86:42 [INFO] [stdout] | [INFO] [stdout] 75 | / fn verify_auth( [INFO] [stdout] 76 | | auth: &String, [INFO] [stdout] 77 | | public_key: &RSAPublicKey, [INFO] [stdout] 78 | | username: &String, [INFO] [stdout] ... | [INFO] [stdout] 86 | | if &String::from(auth_comp.next()?) != username { [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), VerificationError>` [INFO] [stdout] ... | [INFO] [stdout] 97 | | Ok(()) [INFO] [stdout] 98 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), VerificationError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/service/auth_service.rs:90:41 [INFO] [stdout] | [INFO] [stdout] 75 | / fn verify_auth( [INFO] [stdout] 76 | | auth: &String, [INFO] [stdout] 77 | | public_key: &RSAPublicKey, [INFO] [stdout] 78 | | username: &String, [INFO] [stdout] ... | [INFO] [stdout] 90 | | let auth_time = auth_comp.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), VerificationError>` [INFO] [stdout] ... | [INFO] [stdout] 97 | | Ok(()) [INFO] [stdout] 98 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), VerificationError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lockbook_core` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/repo/account_repo.rs:33:30 [INFO] [stdout] | [INFO] [stdout] 31 | / fn get_account(db: &Db) -> Result { [INFO] [stdout] 32 | | let maybe_value = db.get(b"0")?; [INFO] [stdout] 33 | | let val = maybe_value?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 34 | | let account: Account = serde_json::from_slice(val.as_ref())?; [INFO] [stdout] 35 | | Ok(account) [INFO] [stdout] 36 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/repo/db_provider.rs:39:32 [INFO] [stdout] | [INFO] [stdout] 35 | / fn connect_to_db(_config: &Config) -> Result { [INFO] [stdout] 36 | | let dir = tempdir()?; [INFO] [stdout] 37 | | let dir_path = format!( [INFO] [stdout] 38 | | "{}/{}", [INFO] [stdout] 39 | | dir.path().to_str()?.to_string(), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 43 | | Ok(sled::open(dir_path)?) [INFO] [stdout] 44 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/repo/file_metadata_repo.rs:64:32 [INFO] [stdout] | [INFO] [stdout] 61 | / fn get(db: &Db, id: &String) -> Result { [INFO] [stdout] 62 | | let tree = db.open_tree(b"file_metadata")?; [INFO] [stdout] 63 | | let maybe_value = tree.get(id.as_bytes())?; [INFO] [stdout] 64 | | let value = maybe_value?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 67 | | Ok(file_metadata) [INFO] [stdout] 68 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/repo/file_repo.rs:35:32 [INFO] [stdout] | [INFO] [stdout] 32 | / fn get(db: &Db, id: &String) -> Result { [INFO] [stdout] 33 | | let tree = db.open_tree(b"files")?; [INFO] [stdout] 34 | | let maybe_value = tree.get(id.as_bytes())?; [INFO] [stdout] 35 | | let value = maybe_value?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 38 | | Ok(file) [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/service/file_encryption_service.rs:111:75 [INFO] [stdout] | [INFO] [stdout] 106 | / fn write_to_file( [INFO] [stdout] 107 | | author: &Account, [INFO] [stdout] 108 | | file_before: &EncryptedFile, [INFO] [stdout] 109 | | content: &DecryptedValue, [INFO] [stdout] 110 | | ) -> Result { [INFO] [stdout] 111 | | let encrypted_key = &file_before.access_keys.get(&author.username)?.access_key; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 122 | | }) [INFO] [stdout] 123 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/service/file_encryption_service.rs:129:69 [INFO] [stdout] | [INFO] [stdout] 125 | / fn read_file( [INFO] [stdout] 126 | | account: &Account, [INFO] [stdout] 127 | | file: &EncryptedFile, [INFO] [stdout] 128 | | ) -> Result { [INFO] [stdout] 129 | | let encrypted_key = &file.access_keys.get(&account.username)?.access_key; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 133 | | Ok(AES::decrypt(&file_encryption_key, &file.content)?) [INFO] [stdout] 134 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/service/auth_service.rs:86:42 [INFO] [stdout] | [INFO] [stdout] 75 | / fn verify_auth( [INFO] [stdout] 76 | | auth: &String, [INFO] [stdout] 77 | | public_key: &RSAPublicKey, [INFO] [stdout] 78 | | username: &String, [INFO] [stdout] ... | [INFO] [stdout] 86 | | if &String::from(auth_comp.next()?) != username { [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), VerificationError>` [INFO] [stdout] ... | [INFO] [stdout] 97 | | Ok(()) [INFO] [stdout] 98 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), VerificationError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/service/auth_service.rs:90:41 [INFO] [stdout] | [INFO] [stdout] 75 | / fn verify_auth( [INFO] [stdout] 76 | | auth: &String, [INFO] [stdout] 77 | | public_key: &RSAPublicKey, [INFO] [stdout] 78 | | username: &String, [INFO] [stdout] ... | [INFO] [stdout] 90 | | let auth_time = auth_comp.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), VerificationError>` [INFO] [stdout] ... | [INFO] [stdout] 97 | | Ok(()) [INFO] [stdout] 98 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), VerificationError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "f857e5a95191fb412cb6342c016a129313547e0d3f99871148e1e0b094835ee5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f857e5a95191fb412cb6342c016a129313547e0d3f99871148e1e0b094835ee5", kill_on_drop: false }` [INFO] [stdout] f857e5a95191fb412cb6342c016a129313547e0d3f99871148e1e0b094835ee5