[INFO] fetching crate dochy_archiver 0.1.3... [INFO] checking dochy_archiver-0.1.3 against try#4a23c45c7893f1416456144e3883cc48ea91722e for pr-82322 [INFO] extracting crate dochy_archiver 0.1.3 into /workspace/builds/worker-12/source [INFO] validating manifest of crates.io crate dochy_archiver 0.1.3 on toolchain 4a23c45c7893f1416456144e3883cc48ea91722e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate dochy_archiver 0.1.3 [INFO] finished tweaking crates.io crate dochy_archiver 0.1.3 [INFO] tweaked toml for crates.io crate dochy_archiver 0.1.3 written to /workspace/builds/worker-12/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5dfbad5b0c86de6823d0d7a9c29d1e5bc837d19cf61eb79665b3113d05edd891 [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" "5dfbad5b0c86de6823d0d7a9c29d1e5bc837d19cf61eb79665b3113d05edd891", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5dfbad5b0c86de6823d0d7a9c29d1e5bc837d19cf61eb79665b3113d05edd891", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dfbad5b0c86de6823d0d7a9c29d1e5bc837d19cf61eb79665b3113d05edd891", kill_on_drop: false }` [INFO] [stdout] 5dfbad5b0c86de6823d0d7a9c29d1e5bc837d19cf61eb79665b3113d05edd891 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8eded9937da41690ceedc102a55477df17c9569db551db9651fe1f8078106b28 [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" "8eded9937da41690ceedc102a55477df17c9569db551db9651fe1f8078106b28", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking regex-syntax v0.6.22 [INFO] [stderr] Compiling snap v1.0.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking with_capacity_safe v0.2.0 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking metrohash v1.0.6 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking dochy_compaction v0.1.0 [INFO] [stderr] Checking dochy_archiver v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] | | ^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 44 | | let file_name = i.next()?.as_string()?; [INFO] [stdout] | | ^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 44 | | let file_name = i.next()?.as_string()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:45:26 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 45 | | let millis = i.next()?.as_i64()?; [INFO] [stdout] | | ^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:45:26 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 45 | | let millis = i.next()?.as_i64()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 47 | | let modified = SystemTime::UNIX_EPOCH.checked_add(duration)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 48 | | let bytes_len = i.next()?.as_i64()? as u64; [INFO] [stdout] | | ^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 48 | | let bytes_len = i.next()?.as_i64()? as u64; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata_item.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 18 | / pub(crate) fn from_file_item(file_item : &FileItem) -> ArcResult{ [INFO] [stdout] 19 | | let path = file_item.file_path(); [INFO] [stdout] 20 | | let oss: &OsStr = path.file_stem()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 21 | | let file_stem = oss.to_str()?.to_string(); [INFO] [stdout] 22 | | Ok(Self::new(file_stem, file_item.modified().clone(), file_item.len())) [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata_item.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 18 | / pub(crate) fn from_file_item(file_item : &FileItem) -> ArcResult{ [INFO] [stdout] 19 | | let path = file_item.file_path(); [INFO] [stdout] 20 | | let oss: &OsStr = path.file_stem()?; [INFO] [stdout] 21 | | let file_stem = oss.to_str()?.to_string(); [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 22 | | Ok(Self::new(file_stem, file_item.modified().clone(), file_item.len())) [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] | | ^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 44 | | let file_name = i.next()?.as_string()?; [INFO] [stdout] | | ^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 44 | | let file_name = i.next()?.as_string()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/testing/error_test.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | / fn hoge() -> Result<(), TestError>{ [INFO] [stdout] 80 | | opt()?; [INFO] [stdout] | | ^^^^^^ cannot use the `?` operator in a function that returns `Result<(), TestError>` [INFO] [stdout] 81 | | Ok(()) [INFO] [stdout] 82 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), TestError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:45:26 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 45 | | let millis = i.next()?.as_i64()?; [INFO] [stdout] | | ^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/testing/error_test.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 107 | / fn test_inner2() -> Result<(), TestError>{ [INFO] [stdout] 108 | | opt()?; [INFO] [stdout] | | ^^^^^^ cannot use the `?` operator in a function that returns `Result<(), TestError>` [INFO] [stdout] 109 | | Ok(()) [INFO] [stdout] 110 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), TestError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:45:26 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 45 | | let millis = i.next()?.as_i64()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:47:28 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 47 | | let modified = SystemTime::UNIX_EPOCH.checked_add(duration)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 48 | | let bytes_len = i.next()?.as_i64()? as u64; [INFO] [stdout] | | ^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 38 | / pub(crate) fn from_bytes(bytes : &mut impl Read) -> ArcResult<(Metadata, usize)>{ [INFO] [stdout] 39 | | let (vec, bytes_read) = decode(bytes)?; [INFO] [stdout] 40 | | let mut i = vec.iter(); [INFO] [stdout] 41 | | let len = i.next()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 48 | | let bytes_len = i.next()?.as_i64()? as u64; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok((Metadata::new(r), bytes_read)) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(metadata::Metadata, usize), NouArcError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata_item.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 18 | / pub(crate) fn from_file_item(file_item : &FileItem) -> ArcResult{ [INFO] [stdout] 19 | | let path = file_item.file_path(); [INFO] [stdout] 20 | | let oss: &OsStr = path.file_stem()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 21 | | let file_stem = oss.to_str()?.to_string(); [INFO] [stdout] 22 | | Ok(Self::new(file_stem, file_item.modified().clone(), file_item.len())) [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/structs/metadata_item.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 18 | / pub(crate) fn from_file_item(file_item : &FileItem) -> ArcResult{ [INFO] [stdout] 19 | | let path = file_item.file_path(); [INFO] [stdout] 20 | | let oss: &OsStr = path.file_stem()?; [INFO] [stdout] 21 | | let file_stem = oss.to_str()?.to_string(); [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 22 | | Ok(Self::new(file_stem, file_item.modified().clone(), file_item.len())) [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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] [stderr] error: could not compile `dochy_archiver` [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: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "8eded9937da41690ceedc102a55477df17c9569db551db9651fe1f8078106b28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8eded9937da41690ceedc102a55477df17c9569db551db9651fe1f8078106b28", kill_on_drop: false }` [INFO] [stdout] 8eded9937da41690ceedc102a55477df17c9569db551db9651fe1f8078106b28