[INFO] fetching crate lockbook_core 3.3.6... [INFO] testing lockbook_core-3.3.6 against try#ecabaf78506b7a4668d42dc20268c086b93f0fad for pr-87041 [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 ecabaf78506b7a4668d42dc20268c086b93f0fad [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "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" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "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" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "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" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 61a2571ac717e9d98f9842b4d32f57da6e3604b2f9c705123c801b555939c0f8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "61a2571ac717e9d98f9842b4d32f57da6e3604b2f9c705123c801b555939c0f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "61a2571ac717e9d98f9842b4d32f57da6e3604b2f9c705123c801b555939c0f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61a2571ac717e9d98f9842b4d32f57da6e3604b2f9c705123c801b555939c0f8", kill_on_drop: false }` [INFO] [stdout] 61a2571ac717e9d98f9842b4d32f57da6e3604b2f9c705123c801b555939c0f8 [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" "+ecabaf78506b7a4668d42dc20268c086b93f0fad" "build" "--frozen" "--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] 597e20f623b7defc580baafa237192a218a6d1a8c8df110fdf38a5d94b1801cc [INFO] running `Command { std: "docker" "start" "-a" "597e20f623b7defc580baafa237192a218a6d1a8c8df110fdf38a5d94b1801cc", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling futures v0.1.31 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling slab v0.4.3 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling gimli v0.24.0 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling openssl v0.10.35 [INFO] [stderr] Compiling rustc-demangle v0.1.20 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling openssl-probe v0.1.4 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling num-bigint-dig v0.6.1 [INFO] [stderr] Compiling try_from v0.3.2 [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling base64 v0.10.1 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [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 indexmap v1.7.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling tokio-sync v0.1.8 [INFO] [stderr] Compiling want v0.2.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling object v0.25.3 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling hyper v0.12.36 [INFO] [stderr] Compiling openssl-sys v0.9.65 [INFO] [stderr] Compiling backtrace v0.3.60 [INFO] [stderr] Compiling tokio-executor v0.1.10 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling parking_lot_core v0.7.2 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling tokio-current-thread v0.1.7 [INFO] [stderr] Compiling tokio-timer v0.2.13 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling addr2line v0.15.2 [INFO] [stderr] Compiling parking_lot v0.10.2 [INFO] [stderr] Compiling universal-hash v0.3.0 [INFO] [stderr] Compiling block-cipher-trait v0.6.2 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling aead v0.2.0 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling tokio-threadpool v0.1.18 [INFO] [stderr] Compiling tokio-io v0.1.13 [INFO] [stderr] Compiling http v0.1.21 [INFO] [stderr] Compiling tokio-buf v0.1.1 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling sled v0.31.0 [INFO] [stderr] Compiling aes-soft v0.3.3 [INFO] [stderr] Compiling uuid v0.7.4 [INFO] [stderr] Compiling polyval v0.3.3 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling tokio-reactor v0.1.12 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling aes v0.3.2 [INFO] [stderr] Compiling ghash v0.2.3 [INFO] [stderr] Compiling synstructure v0.12.5 [INFO] [stderr] Compiling tokio-tcp v0.1.4 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling cookie v0.12.0 [INFO] [stderr] Compiling publicsuffix v1.5.6 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling http-body v0.1.0 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling zeroize_derive v1.1.0 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling aes-gcm v0.5.0 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling hyper-tls v0.3.2 [INFO] [stderr] Compiling serde_urlencoded v0.5.5 [INFO] [stderr] Compiling cookie_store v0.7.0 [INFO] [stderr] Compiling rsa v0.2.0 [INFO] [stderr] Compiling reqwest v0.9.24 [INFO] [stderr] Compiling 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[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] running `Command { std: "docker" "inspect" "597e20f623b7defc580baafa237192a218a6d1a8c8df110fdf38a5d94b1801cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "597e20f623b7defc580baafa237192a218a6d1a8c8df110fdf38a5d94b1801cc", kill_on_drop: false }` [INFO] [stdout] 597e20f623b7defc580baafa237192a218a6d1a8c8df110fdf38a5d94b1801cc