[INFO] fetching crate interm 0.1.1... [INFO] testing interm-0.1.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate interm 0.1.1 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate interm 0.1.1 [INFO] removed 1 missing examples [INFO] finished tweaking crates.io crate interm 0.1.1 [INFO] tweaked toml for crates.io crate interm 0.1.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate interm 0.1.1 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 interm 0.1.1 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] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 125df52846d6fd30c6ac3e5adf4d8da3ca0ac9a6558c93e98a421809b562c777 [INFO] running `Command { std: "docker" "start" "-a" "125df52846d6fd30c6ac3e5adf4d8da3ca0ac9a6558c93e98a421809b562c777", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "125df52846d6fd30c6ac3e5adf4d8da3ca0ac9a6558c93e98a421809b562c777", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "125df52846d6fd30c6ac3e5adf4d8da3ca0ac9a6558c93e98a421809b562c777", kill_on_drop: false }` [INFO] [stdout] 125df52846d6fd30c6ac3e5adf4d8da3ca0ac9a6558c93e98a421809b562c777 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 048e9d1c12915faf47e72e528a7d85dbd7ff78e2b2720fca9d420600a099f36e [INFO] running `Command { std: "docker" "start" "-a" "048e9d1c12915faf47e72e528a7d85dbd7ff78e2b2720fca9d420600a099f36e", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling tokio v1.32.0 [INFO] [stderr] Compiling interm v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.62s [INFO] running `Command { std: "docker" "inspect" "048e9d1c12915faf47e72e528a7d85dbd7ff78e2b2720fca9d420600a099f36e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "048e9d1c12915faf47e72e528a7d85dbd7ff78e2b2720fca9d420600a099f36e", kill_on_drop: false }` [INFO] [stdout] 048e9d1c12915faf47e72e528a7d85dbd7ff78e2b2720fca9d420600a099f36e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 48cbe771b8ee0ea352d1ffb35e94205b2e4e6be0e8d0d89eb40e8ab4361e2323 [INFO] running `Command { std: "docker" "start" "-a" "48cbe771b8ee0ea352d1ffb35e94205b2e4e6be0e8d0d89eb40e8ab4361e2323", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling interm v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "48cbe771b8ee0ea352d1ffb35e94205b2e4e6be0e8d0d89eb40e8ab4361e2323", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48cbe771b8ee0ea352d1ffb35e94205b2e4e6be0e8d0d89eb40e8ab4361e2323", kill_on_drop: false }` [INFO] [stdout] 48cbe771b8ee0ea352d1ffb35e94205b2e4e6be0e8d0d89eb40e8ab4361e2323 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] fc54404e5bc11a80f216edc3800e26e07efa77c22c203cf2df80145ae1102431 [INFO] running `Command { std: "docker" "start" "-a" "fc54404e5bc11a80f216edc3800e26e07efa77c22c203cf2df80145ae1102431", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/interm-d098a986c388be7b) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Doc-tests interm [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/block.rs - block::Block::clear_line (line 208) ... FAILED [INFO] [stdout] test src/block.rs - block::Block::goto_element (line 167) ... FAILED [INFO] [stdout] test src/block.rs - block::Block::clear_lines (line 231) ... FAILED [INFO] [stdout] test src/interactive/lines.rs - interactive::lines::InteractiveLine::new (line 19) ... ok [INFO] [stdout] test src/block.rs - block::Block::hide_cursor (line 259) ... FAILED [INFO] [stdout] test src/block.rs - block::Block::show_cursor (line 282) ... FAILED [INFO] [stdout] test src/interactive/lines.rs - interactive::lines::InteractiveLine::update_content (line 44) ... ok [INFO] [stdout] test src/block.rs - block::Block::update_element (line 79) ... FAILED [INFO] [stdout] test src/block.rs - block::Block::goto_idx (line 129) ... FAILED [INFO] [stdout] test src/block.rs - block::Block::new (line 22) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/block.rs - block::Block::clear_line (line 208) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/block.rs:212:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..=; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/block.rs:212:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [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/block.rs:215:19 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_block_rs_208_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | block.clear_line()?; [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_block_rs_208_0() -> Result<(), Box> { [INFO] [stdout] 5 | use interm::{interactive::Line as InteractiveLine, Block}; [INFO] [stdout] ... [INFO] [stdout] 10 | block.clear_line()?; [INFO] [stdout] 11 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/block.rs - block::Block::goto_element (line 167) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/block.rs:171:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..=; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/block.rs:171:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [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/block.rs:175:25 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_block_rs_167_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | block.goto_element(elem)?; [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_block_rs_167_0() -> Result<(), Box> { [INFO] [stdout] 5 | use interm::{interactive::Line as InteractiveLine, Block}; [INFO] [stdout] ... [INFO] [stdout] 11 | block.goto_element(elem)?; [INFO] [stdout] 12 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/block.rs - block::Block::clear_lines (line 231) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/block.rs:235:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..=; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/block.rs:235:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [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/block.rs:238:20 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_block_rs_231_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | block.clear_lines()?; [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_block_rs_231_0() -> Result<(), Box> { [INFO] [stdout] 5 | use interm::{interactive::Line as InteractiveLine, Block}; [INFO] [stdout] ... [INFO] [stdout] 10 | block.clear_lines()?; [INFO] [stdout] 11 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/block.rs - block::Block::hide_cursor (line 259) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/block.rs:263:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..=; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/block.rs:263:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [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/block.rs:266:20 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_block_rs_259_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | block.hide_cursor()?; [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_block_rs_259_0() -> Result<(), Box> { [INFO] [stdout] 5 | use interm::{interactive::Line as InteractiveLine, Block}; [INFO] [stdout] ... [INFO] [stdout] 10 | block.hide_cursor()?; [INFO] [stdout] 11 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/block.rs - block::Block::show_cursor (line 282) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/block.rs:286:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..=; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/block.rs:286:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [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/block.rs:289:20 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_block_rs_282_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | block.show_cursor()?; [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_block_rs_282_0() -> Result<(), Box> { [INFO] [stdout] 5 | use interm::{interactive::Line as InteractiveLine, Block}; [INFO] [stdout] ... [INFO] [stdout] 10 | block.show_cursor()?; [INFO] [stdout] 11 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/block.rs - block::Block::update_element (line 79) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/block.rs:83:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..=; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/block.rs:83:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [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 E0586`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/block.rs - block::Block::goto_idx (line 129) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/block.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..=; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/block.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 7 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 7 - let mut elements: Vec = ...; [INFO] [stdout] 7 + let mut elements: Vec = ..; [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/block.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_block_rs_129_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | block.goto_idx(0)?; [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_block_rs_129_0() -> Result<(), Box> { [INFO] [stdout] 5 | use interm::{interactive::Line as InteractiveLine, Block}; [INFO] [stdout] ... [INFO] [stdout] 10 | block.goto_idx(0)?; [INFO] [stdout] 11 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/block.rs - block::Block::clear_line (line 208) [INFO] [stdout] src/block.rs - block::Block::clear_lines (line 231) [INFO] [stdout] src/block.rs - block::Block::goto_element (line 167) [INFO] [stdout] src/block.rs - block::Block::goto_idx (line 129) [INFO] [stdout] src/block.rs - block::Block::hide_cursor (line 259) [INFO] [stdout] src/block.rs - block::Block::show_cursor (line 282) [INFO] [stdout] src/block.rs - block::Block::update_element (line 79) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.39s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "fc54404e5bc11a80f216edc3800e26e07efa77c22c203cf2df80145ae1102431", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc54404e5bc11a80f216edc3800e26e07efa77c22c203cf2df80145ae1102431", kill_on_drop: false }` [INFO] [stdout] fc54404e5bc11a80f216edc3800e26e07efa77c22c203cf2df80145ae1102431