[INFO] fetching crate criware-utf-core 1.1.0... [INFO] testing criware-utf-core-1.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate criware-utf-core 1.1.0 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate criware-utf-core 1.1.0 [INFO] finished tweaking crates.io crate criware-utf-core 1.1.0 [INFO] tweaked toml for crates.io crate criware-utf-core 1.1.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate criware-utf-core 1.1.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate criware-utf-core 1.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d36b3c62c3fda81331df216818d490401bb407dc1084bb2a485d5a102f18a01b [INFO] running `Command { std: "docker" "start" "-a" "d36b3c62c3fda81331df216818d490401bb407dc1084bb2a485d5a102f18a01b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d36b3c62c3fda81331df216818d490401bb407dc1084bb2a485d5a102f18a01b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d36b3c62c3fda81331df216818d490401bb407dc1084bb2a485d5a102f18a01b", kill_on_drop: false }` [INFO] [stdout] d36b3c62c3fda81331df216818d490401bb407dc1084bb2a485d5a102f18a01b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd056a86080c09893085dd9852e6d38fd6e62a97204c39c742f9fa0c37a9b738 [INFO] running `Command { std: "docker" "start" "-a" "dd056a86080c09893085dd9852e6d38fd6e62a97204c39c742f9fa0c37a9b738", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.96 [INFO] [stderr] Compiling thiserror v2.0.14 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling thiserror-impl v2.0.14 [INFO] [stderr] Compiling criware-utf-core v1.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.85s [INFO] running `Command { std: "docker" "inspect" "dd056a86080c09893085dd9852e6d38fd6e62a97204c39c742f9fa0c37a9b738", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd056a86080c09893085dd9852e6d38fd6e62a97204c39c742f9fa0c37a9b738", kill_on_drop: false }` [INFO] [stdout] dd056a86080c09893085dd9852e6d38fd6e62a97204c39c742f9fa0c37a9b738 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64071a5d22085b16bda97ae741c225c16d1871d64ea9e49b02fcee047283518e [INFO] running `Command { std: "docker" "start" "-a" "64071a5d22085b16bda97ae741c225c16d1871d64ea9e49b02fcee047283518e", kill_on_drop: false }` [INFO] [stderr] Compiling criware-utf-core v1.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.56s [INFO] running `Command { std: "docker" "inspect" "64071a5d22085b16bda97ae741c225c16d1871d64ea9e49b02fcee047283518e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64071a5d22085b16bda97ae741c225c16d1871d64ea9e49b02fcee047283518e", kill_on_drop: false }` [INFO] [stdout] 64071a5d22085b16bda97ae741c225c16d1871d64ea9e49b02fcee047283518e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 12b9c7c699643faf15700baae4079d1ea5cded6bdaaa6389a4d4801ab31856c5 [INFO] running `Command { std: "docker" "start" "-a" "12b9c7c699643faf15700baae4079d1ea5cded6bdaaa6389a4d4801ab31856c5", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/criware_utf_core-94d54b617a650cda) [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; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests criware_utf_core [INFO] [stdout] [INFO] [stdout] running 25 tests [INFO] [stdout] test src/schema.rs - schema::Schema::has_column (line 98) - compile ... FAILED [INFO] [stdout] test src/reader.rs - reader::Reader::read_value (line 369) - compile ... FAILED [INFO] [stdout] test src/reader.rs - reader::Reader::read_constant_column (line 234) - compile ... FAILED [INFO] [stdout] test src/reader.rs - reader::Reader::field_count (line 135) - compile ... FAILED [INFO] [stdout] test src/reader.rs - reader::Reader::read_rowed_column (line 300) - compile ... FAILED [INFO] [stdout] test src/schema.rs - schema::Schema::read (line 124) - compile ... FAILED [INFO] [stdout] test src/reader.rs - reader::Reader::new (line 48) - compile ... FAILED [INFO] [stdout] test src/reader.rs - reader::Reader::more_row_data (line 188) - compile ... FAILED [INFO] [stdout] test src/value.rs - value::utf_size_of (line 284) ... FAILED [INFO] [stdout] test src/table.rs - table::Table::new (line 9) ... FAILED [INFO] [stdout] test src/table.rs - table::Table::write (line 58) ... FAILED [INFO] [stdout] test src/writer.rs - writer::Writer<'a>::new (line 62) - compile ... ok [INFO] [stdout] test src/table.rs - table::Table::read (line 34) ... FAILED [INFO] [stdout] test src/writer.rs - writer::Writer<'a>::end (line 89) - compile ... FAILED [INFO] [stdout] test src/reader.rs - reader::Reader::read_constant_column_opt (line 255) - compile ... FAILED [INFO] [stdout] test src/writer.rs - writer::Writer<'a>::push_constant_column_opt (line 183) - compile ... FAILED [INFO] [stdout] test src/writer.rs - writer::Writer<'a>::push_rowed_column (line 209) - compile ... FAILED [INFO] [stdout] test src/table.rs - table::Table::read_packet (line 84) ... FAILED [INFO] [stdout] test src/writer.rs - writer::Writer<'a>::push_rowed_column_opt (line 223) - compile ... FAILED [INFO] [stdout] test src/reader.rs - reader::Reader::more_column_data (line 168) - compile ... FAILED [INFO] [stdout] test src/value.rs - value::Value (line 163) ... ok [INFO] [stdout] test src/writer.rs - writer::Writer<'a>::push_constant_column (line 164) - compile ... FAILED [INFO] [stdout] test src/writer.rs - writer::Writer<'a>::write_value (line 256) - compile ... FAILED [INFO] [stdout] test src/reader.rs - reader::Reader::read_rowed_column_opt (line 323) - compile ... FAILED [INFO] [stdout] test src/reader.rs - reader::Reader::table_name (line 151) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/schema.rs - schema::Schema::has_column (line 98) 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/schema.rs:102:46 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_schema_rs_98_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut file = File::open("random-table.bin")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_schema_rs_98_0() -> Result<(), Box> { [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/schema.rs:103:37 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_schema_rs_98_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let schema = Schema::read(&mut file)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_schema_rs_98_0() -> Result<(), Box> { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/reader.rs - reader::Reader::read_value (line 369) 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/reader.rs:373:55 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_369_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut file = std::fs::File::open("random-table.bin")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_369_0() -> Result<(), Box> { [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/reader.rs:374:54 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_369_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let reader = criware_utf_core::Reader::new(&mut file)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_369_0() -> Result<(), Box> { [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/reader.rs:376:47 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_369_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | let name: String = reader.read_value(true)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_369_0() -> Result<(), Box> { [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/reader.rs:377:45 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_369_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | let crc32: u32 = reader.read_value(true)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_369_0() -> Result<(), Box> { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/reader.rs - reader::Reader::read_constant_column (line 234) 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/reader.rs:238:55 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_234_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut file = std::fs::File::open("random-table.bin")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_234_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 10| let version: String = reader.read_constant_column("Version")?; [INFO] [stdout] 11+ Ok(()) [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/reader.rs:239:54 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_234_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let reader = criware_utf_core::Reader::new(&mut file)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_234_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 10| let version: String = reader.read_constant_column("Version")?; [INFO] [stdout] 11+ Ok(()) [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/reader.rs:240:63 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_234_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let file_count: u64 = reader.read_constant_column("FileCount")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_234_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 10| let version: String = reader.read_constant_column("Version")?; [INFO] [stdout] 11+ Ok(()) [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/reader.rs:241:61 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_234_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | let version: String = reader.read_constant_column("Version")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_234_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 10 | let version: String = reader.read_constant_column("Version")?; [INFO] [stdout] 11 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/reader.rs - reader::Reader::field_count (line 135) 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/reader.rs:139:46 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_135_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut file = File::open("random-table.bin")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_135_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 9 | assert_eq!(reader.field_count(), 7u16); [INFO] [stdout] 10+ Ok(()) [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/reader.rs:140:36 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_135_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let reader = Reader::new(&mut file)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_135_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 9 | assert_eq!(reader.field_count(), 7u16); [INFO] [stdout] 10+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/reader.rs - reader::Reader::read_rowed_column (line 300) 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/reader.rs:304:55 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_300_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut file = std::fs::File::open("random-table.bin")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_300_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 10| reader.read_constant_column::("Name")?; [INFO] [stdout] 11+ Ok(()) [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/reader.rs:305:54 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_300_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let reader = criware_utf_core::Reader::new(&mut file)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_300_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 10| reader.read_constant_column::("Name")?; [INFO] [stdout] 11+ Ok(()) [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/reader.rs:306:41 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_300_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | reader.read_constant_column::("ID")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_300_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 10| reader.read_constant_column::("Name")?; [INFO] [stdout] 11+ Ok(()) [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/reader.rs:307:46 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_300_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | reader.read_constant_column::("Name")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_300_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 10 | reader.read_constant_column::("Name")?; [INFO] [stdout] 11 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/schema.rs - schema::Schema::read (line 124) 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/schema.rs:128:46 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_schema_rs_124_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut file = File::open("random-table.bin")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_schema_rs_124_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 9 | println!("{}", schema.table_name); [INFO] [stdout] 10+ Ok(()) [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/schema.rs:129:37 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_schema_rs_124_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let schema = Schema::read(&mut file)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_schema_rs_124_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 9 | println!("{}", schema.table_name); [INFO] [stdout] 10+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/reader.rs - reader::Reader::new (line 48) 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/reader.rs:52:46 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_48_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut file = File::open("random-table.bin")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_48_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 8 | let reader = Reader::new(&mut file)?; [INFO] [stdout] 9 + Ok(()) [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/reader.rs:53:36 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_48_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let reader = Reader::new(&mut file)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_48_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 8 | let reader = Reader::new(&mut file)?; [INFO] [stdout] 9 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/reader.rs - reader::Reader::more_row_data (line 188) 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/reader.rs:192:55 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_188_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut file = std::fs::File::open("random-table.bin")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_188_0() -> Result<(), Box> { [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/reader.rs:193:54 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_188_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let reader = criware_utf_core::Reader::new(&mut file)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_188_0() -> Result<(), Box> { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/value.rs - value::utf_size_of (line 284) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Cow` in this scope [INFO] [stdout] --> src/value.rs:296:43 [INFO] [stdout] | [INFO] [stdout] 13 | fn to_primitive<'a>(&'a self) -> Result, Box> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 + use std::borrow::Cow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cow` [INFO] [stdout] --> src/value.rs:297:10 [INFO] [stdout] | [INFO] [stdout] 14 | Ok(Cow::Owned((self.0 << 4) | self.1)) [INFO] [stdout] | ^^^ use of undeclared type `Cow` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 + use std::borrow::Cow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/table.rs - table::Table::new (line 9) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `criware_utf` [INFO] [stdout] --> src/table.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 2 | use criware_utf::{Table, utf_table}; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `criware_utf` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `criware_utf`, use `cargo add criware_utf` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `constant` in this scope [INFO] [stdout] --> src/table.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[constant] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `Tab` in the current scope [INFO] [stdout] --> src/table.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 4 | struct Tab { [INFO] [stdout] | ---------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 11 | let table = Tab::new(); [INFO] [stdout] | ^^^ function or associated item not found in `Tab` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `new`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `criware_utf_core::Table` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/table.rs - table::Table::write (line 58) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `criware_utf` [INFO] [stdout] --> src/table.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 3 | use criware_utf::{Table, utf_table}; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `criware_utf` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `criware_utf`, use `cargo add criware_utf` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `constant` in this scope [INFO] [stdout] --> src/table.rs:63:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[constant] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `Tab` in the current scope [INFO] [stdout] --> src/table.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 5 | struct Tab { [INFO] [stdout] | ---------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 13 | let table = Tab::new(); [INFO] [stdout] | ^^^ function or associated item not found in `Tab` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `new`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `criware_utf_core::Table` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/table.rs - table::Table::read (line 34) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `criware_utf` [INFO] [stdout] --> src/table.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 3 | use criware_utf::{Table, utf_table}; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `criware_utf` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `criware_utf`, use `cargo add criware_utf` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `constant` in this scope [INFO] [stdout] --> src/table.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[constant] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read` found for struct `Tab` in the current scope [INFO] [stdout] --> src/table.rs:46:22 [INFO] [stdout] | [INFO] [stdout] 5 | struct Tab { [INFO] [stdout] | ---------- function or associated item `read` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 13 | let table = Tab::read(&mut file)?; [INFO] [stdout] | ^^^^ function or associated item not found in `Tab` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `read`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `criware_utf_core::Table` [INFO] [stdout] candidate #2: `std::io::Read` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/writer.rs - writer::Writer<'a>::end (line 89) stdout ---- [INFO] [stdout] error: statements are terminated with a semicolon [INFO] [stdout] --> src/writer.rs:96:28 [INFO] [stdout] | [INFO] [stdout] 10 | writer.end(file, 12, 1000)?: [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: use a semicolon instead [INFO] [stdout] | [INFO] [stdout] 10 - writer.end(file, 12, 1000)?: [INFO] [stdout] 10 + writer.end(file, 12, 1000)?; [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/writer.rs:93:51 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_89_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut file = File::create("important-table.bin")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_89_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 10| writer.end(file, 12, 1000)?: [INFO] [stdout] 11+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/writer.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 10 | writer.end(file, 12, 1000)?: [INFO] [stdout] | --- ^^^^ expected `&mut dyn Write`, found `File` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn std::io::Write` [INFO] [stdout] found struct `File` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/writer.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn end(&self, writer: &mut dyn Write, row_size: u16, row_count: u32) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 10 | writer.end(&mut file, 12, 1000)?: [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/writer.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_89_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | writer.end(file, 12, 1000)?: [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_89_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 10 | writer.end(file, 12, 1000)?: [INFO] [stdout] 11 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/reader.rs - reader::Reader::read_constant_column_opt (line 255) 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/reader.rs:259:55 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_255_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut file = std::fs::File::open("random-table.bin")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_255_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 11| let crc32: Option = reader.read_constant_column_opt::("Crc")?; [INFO] [stdout] 12+ Ok(()) [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/reader.rs:260:54 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_255_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let reader = criware_utf_core::Reader::new(&mut file)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_255_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 11| let crc32: Option = reader.read_constant_column_opt::("Crc")?; [INFO] [stdout] 12+ Ok(()) [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/reader.rs:261:63 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_255_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let file_count: u64 = reader.read_constant_column("FileCount")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_255_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 11| let crc32: Option = reader.read_constant_column_opt::("Crc")?; [INFO] [stdout] 12+ Ok(()) [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/reader.rs:262:61 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_255_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | let version: String = reader.read_constant_column("Version")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_255_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 11 | let crc32: Option = reader.read_constant_column_opt::("Crc")?; [INFO] [stdout] 12 + Ok(()) [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/reader.rs:263:71 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_255_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | let crc32: Option = reader.read_constant_column_opt::("Crc")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_255_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 11 | let crc32: Option = reader.read_constant_column_opt::("Crc")?; [INFO] [stdout] 12 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/writer.rs - writer::Writer<'a>::push_constant_column_opt (line 183) 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/writer.rs:188:47 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_183_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | writer.push_constant_column_opt("Crc", &crc32)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_183_0() -> Result<(), Box> { [INFO] [stdout] 5 | use criware_utf_core::Writer; [INFO] [stdout] ... [INFO] [stdout] 8 | writer.push_constant_column_opt("Crc", &crc32)?; [INFO] [stdout] 9 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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] ---- src/writer.rs - writer::Writer<'a>::push_rowed_column (line 209) stdout ---- [INFO] [stdout] error[E0596]: cannot borrow `writer` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/writer.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 7 | writer.push_rowed_column::("ID"); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 6 | let mut writer = Writer::new("ImportantTable"); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0596`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/table.rs - table::Table::read_packet (line 84) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `criware_utf` [INFO] [stdout] --> src/table.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 3 | use criware_utf::{Packet, Table, utf_table}; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `criware_utf` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `criware_utf`, use `cargo add criware_utf` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `constant` in this scope [INFO] [stdout] --> src/table.rs:89:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[constant] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_packet` found for struct `Tab` in the current scope [INFO] [stdout] --> src/table.rs:96:35 [INFO] [stdout] | [INFO] [stdout] 5 | struct Tab { [INFO] [stdout] | ---------- function or associated item `read_packet` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 13 | let table: Packet = Tab::read_packet(&mut file, b"TAB ")?; [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `Tab` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_packet`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `criware_utf_core::Table` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/writer.rs - writer::Writer<'a>::push_rowed_column_opt (line 223) stdout ---- [INFO] [stdout] error[E0596]: cannot borrow `writer` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/writer.rs:229:1 [INFO] [stdout] | [INFO] [stdout] 9 | writer.push_rowed_column_opt::("ID", context.is_included("ID")); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 8 | let mut writer = Writer::new("ImportantTable"); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0596`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/reader.rs - reader::Reader::more_column_data (line 168) 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/reader.rs:172:55 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_168_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut file = std::fs::File::open("random-table.bin")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_168_0() -> Result<(), Box> { [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/reader.rs:173:54 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_168_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let reader = criware_utf_core::Reader::new(&mut file)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_168_0() -> Result<(), Box> { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/writer.rs - writer::Writer<'a>::push_constant_column (line 164) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/writer.rs:171:46 [INFO] [stdout] | [INFO] [stdout] 10 | writer.push_constant_column("FileCount", file_count)?; [INFO] [stdout] | -------------------- ^^^^^^^^^^ expected `&_`, found `u64` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `u64` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/writer.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn push_constant_column(&mut self, name: &'a str, value: &'a T) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 10 | writer.push_constant_column("FileCount", &file_count)?; [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/writer.rs:171:57 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_164_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | writer.push_constant_column("FileCount", file_count)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_164_0() -> Result<(), Box> { [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/writer.rs:172:63 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_164_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | writer.push_constant_column::("Comment", &comment)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_164_0() -> Result<(), Box> { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/writer.rs - writer::Writer<'a>::write_value (line 256) stdout ---- [INFO] [stdout] error[E0282]: type annotations needed for `Vec<_>` [INFO] [stdout] --> src/writer.rs:259:5 [INFO] [stdout] | [INFO] [stdout] 6 | let rows = Vec::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | writer.write_value::(true, &row.id)?; [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `rows` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 6 | let rows: Vec = Vec::new(); [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/writer.rs:262:45 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_256_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | writer.write_value::(true, &row.id)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_256_0() -> Result<(), Box> { [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/writer.rs:263:40 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_256_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | writer.write_value(true, &row.name)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_writer_rs_256_0() -> Result<(), Box> { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/reader.rs - reader::Reader::read_rowed_column_opt (line 323) 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/reader.rs:327:55 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_323_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut file = std::fs::File::open("random-table.bin")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_323_0() -> Result<(), Box> { [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/reader.rs:328:54 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_323_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let reader = criware_utf_core::Reader::new(&mut file)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_323_0() -> Result<(), Box> { [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/reader.rs:329:68 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_323_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let crc_included: bool = reader.read_rowed_column_opt::("Crc")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_323_0() -> Result<(), Box> { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/reader.rs - reader::Reader::table_name (line 151) 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/reader.rs:155:46 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_151_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut file = File::open("random-table.bin")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_151_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 9 | assert_eq!(reader.table_name(), "ImportantTable"); [INFO] [stdout] 10+ Ok(()) [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/reader.rs:156:36 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_151_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let reader = Reader::new(&mut file)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_151_0() -> Result<(), Box> { [INFO] [stdout] 5 | use std::fs::File; [INFO] [stdout] ... [INFO] [stdout] 9 | assert_eq!(reader.table_name(), "ImportantTable"); [INFO] [stdout] 10+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [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/reader.rs - reader::Reader::field_count (line 135) [INFO] [stdout] src/reader.rs - reader::Reader::more_column_data (line 168) [INFO] [stdout] src/reader.rs - reader::Reader::more_row_data (line 188) [INFO] [stdout] src/reader.rs - reader::Reader::new (line 48) [INFO] [stdout] src/reader.rs - reader::Reader::read_constant_column (line 234) [INFO] [stdout] src/reader.rs - reader::Reader::read_constant_column_opt (line 255) [INFO] [stdout] src/reader.rs - reader::Reader::read_rowed_column (line 300) [INFO] [stdout] src/reader.rs - reader::Reader::read_rowed_column_opt (line 323) [INFO] [stdout] src/reader.rs - reader::Reader::read_value (line 369) [INFO] [stdout] src/reader.rs - reader::Reader::table_name (line 151) [INFO] [stdout] src/schema.rs - schema::Schema::has_column (line 98) [INFO] [stdout] src/schema.rs - schema::Schema::read (line 124) [INFO] [stdout] src/table.rs - table::Table::new (line 9) [INFO] [stdout] src/table.rs - table::Table::read (line 34) [INFO] [stdout] src/table.rs - table::Table::read_packet (line 84) [INFO] [stdout] src/table.rs - table::Table::write (line 58) [INFO] [stdout] src/value.rs - value::utf_size_of (line 284) [INFO] [stdout] src/writer.rs - writer::Writer<'a>::end (line 89) [INFO] [stdout] src/writer.rs - writer::Writer<'a>::push_constant_column (line 164) [INFO] [stdout] src/writer.rs - writer::Writer<'a>::push_constant_column_opt (line 183) [INFO] [stdout] src/writer.rs - writer::Writer<'a>::push_rowed_column (line 209) [INFO] [stdout] src/writer.rs - writer::Writer<'a>::push_rowed_column_opt (line 223) [INFO] [stdout] src/writer.rs - writer::Writer<'a>::write_value (line 256) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 23 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.58s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.97s; merged doctests compilation took 0.37s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "12b9c7c699643faf15700baae4079d1ea5cded6bdaaa6389a4d4801ab31856c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12b9c7c699643faf15700baae4079d1ea5cded6bdaaa6389a4d4801ab31856c5", kill_on_drop: false }` [INFO] [stdout] 12b9c7c699643faf15700baae4079d1ea5cded6bdaaa6389a4d4801ab31856c5