[INFO] fetching crate interm 0.1.1... [INFO] testing interm-0.1.1 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate interm 0.1.1 into /workspace/builds/worker-7-tc2/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-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate interm 0.1.1 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 065cb894264dc41b9eedd6456005a9fffd4d6deb66769a00ab126821d7a32060 [INFO] running `Command { std: "docker" "start" "-a" "065cb894264dc41b9eedd6456005a9fffd4d6deb66769a00ab126821d7a32060", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "065cb894264dc41b9eedd6456005a9fffd4d6deb66769a00ab126821d7a32060", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "065cb894264dc41b9eedd6456005a9fffd4d6deb66769a00ab126821d7a32060", kill_on_drop: false }` [INFO] [stdout] 065cb894264dc41b9eedd6456005a9fffd4d6deb66769a00ab126821d7a32060 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a580c81c34c28c9a9561d4a334459785fa32fb2947c95e0a46b803fbedef7079 [INFO] running `Command { std: "docker" "start" "-a" "a580c81c34c28c9a9561d4a334459785fa32fb2947c95e0a46b803fbedef7079", 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 pin-project-lite v0.2.13 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling num_cpus v1.16.0 [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 11.06s [INFO] running `Command { std: "docker" "inspect" "a580c81c34c28c9a9561d4a334459785fa32fb2947c95e0a46b803fbedef7079", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a580c81c34c28c9a9561d4a334459785fa32fb2947c95e0a46b803fbedef7079", kill_on_drop: false }` [INFO] [stdout] a580c81c34c28c9a9561d4a334459785fa32fb2947c95e0a46b803fbedef7079 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 87951d045d578883aa5a922804becfbbf7f93ee5ce3dcd8775ea7b15ffd8c20a [INFO] running `Command { std: "docker" "start" "-a" "87951d045d578883aa5a922804becfbbf7f93ee5ce3dcd8775ea7b15ffd8c20a", 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.45s [INFO] running `Command { std: "docker" "inspect" "87951d045d578883aa5a922804becfbbf7f93ee5ce3dcd8775ea7b15ffd8c20a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87951d045d578883aa5a922804becfbbf7f93ee5ce3dcd8775ea7b15ffd8c20a", kill_on_drop: false }` [INFO] [stdout] 87951d045d578883aa5a922804becfbbf7f93ee5ce3dcd8775ea7b15ffd8c20a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 669af5212d7cb1cc7cc12bbd6b56f9cefecb3e7374f8944f1ec4600d83db3b0c [INFO] running `Command { std: "docker" "start" "-a" "669af5212d7cb1cc7cc12bbd6b56f9cefecb3e7374f8944f1ec4600d83db3b0c", 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.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/interm-d098a986c388be7b) [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 interm [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/block.rs - block::Block::show_cursor (line 282) ... FAILED [INFO] [stdout] test src/block.rs - block::Block::goto_element (line 167) ... FAILED [INFO] [stdout] test src/block.rs - block::Block::update_element (line 79) ... FAILED [INFO] [stdout] test src/block.rs - block::Block::clear_line (line 208) ... FAILED [INFO] [stdout] test src/block.rs - block::Block::new (line 22) ... ok [INFO] [stdout] test src/block.rs - block::Block::clear_lines (line 231) ... FAILED [INFO] [stdout] test src/interactive/lines.rs - interactive::lines::InteractiveLine::update_content (line 44) ... ok [INFO] [stdout] test src/block.rs - block::Block::hide_cursor (line 259) ... FAILED [INFO] [stdout] test src/block.rs - block::Block::goto_idx (line 129) ... FAILED [INFO] [stdout] test src/interactive/lines.rs - interactive::lines::InteractiveLine::new (line 19) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 286 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 286 - let mut elements: Vec = ...; [INFO] [stdout] 286 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 286 - let mut elements: Vec = ...; [INFO] [stdout] 286 + 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] 286 | 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] 286 - let mut elements: Vec = ...; [INFO] [stdout] 286 + 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] 283 | 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] 289 | 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] 283 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_block_rs_282_0() -> Result<(), Box> { [INFO] [stdout] 284 | use interm::{interactive::Line as InteractiveLine, Block}; [INFO] [stdout] ... [INFO] [stdout] 289 | block.show_cursor()?; [INFO] [stdout] 290 + 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] 171 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 171 - let mut elements: Vec = ...; [INFO] [stdout] 171 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 171 - let mut elements: Vec = ...; [INFO] [stdout] 171 + 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] 171 | 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] 171 - let mut elements: Vec = ...; [INFO] [stdout] 171 + 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] 168 | 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] 175 | 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] 168 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_block_rs_167_0() -> Result<(), Box> { [INFO] [stdout] 169 | use interm::{interactive::Line as InteractiveLine, Block}; [INFO] [stdout] ... [INFO] [stdout] 175 | block.goto_element(elem)?; [INFO] [stdout] 176 + 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] 83 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 83 - let mut elements: Vec = ...; [INFO] [stdout] 83 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 83 - let mut elements: Vec = ...; [INFO] [stdout] 83 + 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] 83 | 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] 83 - let mut elements: Vec = ...; [INFO] [stdout] 83 + 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::clear_line (line 208) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/block.rs:212:42 [INFO] [stdout] | [INFO] [stdout] 212 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 212 - let mut elements: Vec = ...; [INFO] [stdout] 212 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 212 - let mut elements: Vec = ...; [INFO] [stdout] 212 + 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] 212 | 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] 212 - let mut elements: Vec = ...; [INFO] [stdout] 212 + 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] 209 | 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] 215 | 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] 209 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_block_rs_208_0() -> Result<(), Box> { [INFO] [stdout] 210 | use interm::{interactive::Line as InteractiveLine, Block}; [INFO] [stdout] ... [INFO] [stdout] 215 | block.clear_line()?; [INFO] [stdout] 216 + 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] 235 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 235 - let mut elements: Vec = ...; [INFO] [stdout] 235 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 235 - let mut elements: Vec = ...; [INFO] [stdout] 235 + 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] 235 | 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] 235 - let mut elements: Vec = ...; [INFO] [stdout] 235 + 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] 232 | 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] 238 | 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] 232 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_block_rs_231_0() -> Result<(), Box> { [INFO] [stdout] 233 | use interm::{interactive::Line as InteractiveLine, Block}; [INFO] [stdout] ... [INFO] [stdout] 238 | block.clear_lines()?; [INFO] [stdout] 239 + 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] 263 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 263 - let mut elements: Vec = ...; [INFO] [stdout] 263 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 263 - let mut elements: Vec = ...; [INFO] [stdout] 263 + 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] 263 | 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] 263 - let mut elements: Vec = ...; [INFO] [stdout] 263 + 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] 260 | 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] 266 | 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] 260 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_block_rs_259_0() -> Result<(), Box> { [INFO] [stdout] 261 | use interm::{interactive::Line as InteractiveLine, Block}; [INFO] [stdout] ... [INFO] [stdout] 266 | block.hide_cursor()?; [INFO] [stdout] 267 + 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_idx (line 129) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/block.rs:133:42 [INFO] [stdout] | [INFO] [stdout] 133 | let mut elements: Vec = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 133 - let mut elements: Vec = ...; [INFO] [stdout] 133 + let mut elements: Vec = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 133 - let mut elements: Vec = ...; [INFO] [stdout] 133 + 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] 133 | 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] 133 - let mut elements: Vec = ...; [INFO] [stdout] 133 + 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] 130 | 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] 136 | 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] 130 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_block_rs_129_0() -> Result<(), Box> { [INFO] [stdout] 131 | use interm::{interactive::Line as InteractiveLine, Block}; [INFO] [stdout] ... [INFO] [stdout] 136 | block.goto_idx(0)?; [INFO] [stdout] 137 + 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.58s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "669af5212d7cb1cc7cc12bbd6b56f9cefecb3e7374f8944f1ec4600d83db3b0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "669af5212d7cb1cc7cc12bbd6b56f9cefecb3e7374f8944f1ec4600d83db3b0c", kill_on_drop: false }` [INFO] [stdout] 669af5212d7cb1cc7cc12bbd6b56f9cefecb3e7374f8944f1ec4600d83db3b0c