[INFO] fetching crate scst 0.3.4... [INFO] testing scst-0.3.4 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate scst 0.3.4 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate scst 0.3.4 [INFO] finished tweaking crates.io crate scst 0.3.4 [INFO] tweaked toml for crates.io crate scst 0.3.4 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate scst 0.3.4 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 scst 0.3.4 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-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] a58dac61a845c8774288f40a13a0fe1868f3ed8dcaf4405449d12da5d007127e [INFO] running `Command { std: "docker" "start" "-a" "a58dac61a845c8774288f40a13a0fe1868f3ed8dcaf4405449d12da5d007127e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a58dac61a845c8774288f40a13a0fe1868f3ed8dcaf4405449d12da5d007127e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a58dac61a845c8774288f40a13a0fe1868f3ed8dcaf4405449d12da5d007127e", kill_on_drop: false }` [INFO] [stdout] a58dac61a845c8774288f40a13a0fe1868f3ed8dcaf4405449d12da5d007127e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 5d1300abaae418872705517a2573b6e08dc649ee044160ea012f43bd9d2f0be2 [INFO] running `Command { std: "docker" "start" "-a" "5d1300abaae418872705517a2573b6e08dc649ee044160ea012f43bd9d2f0be2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling serde_yml v0.0.12 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling libyml v0.0.5 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling scst v0.3.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.36s [INFO] running `Command { std: "docker" "inspect" "5d1300abaae418872705517a2573b6e08dc649ee044160ea012f43bd9d2f0be2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d1300abaae418872705517a2573b6e08dc649ee044160ea012f43bd9d2f0be2", kill_on_drop: false }` [INFO] [stdout] 5d1300abaae418872705517a2573b6e08dc649ee044160ea012f43bd9d2f0be2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 6874f88457a42926e539cba5146557d7d5e042c4510fff12a9be91667abef1e7 [INFO] running `Command { std: "docker" "start" "-a" "6874f88457a42926e539cba5146557d7d5e042c4510fff12a9be91667abef1e7", kill_on_drop: false }` [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling clap_lex v0.7.2 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling clap_builder v4.5.20 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling clap v4.5.20 [INFO] [stderr] Compiling criterion v0.6.0 [INFO] [stderr] Compiling scst v0.3.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 9.72s [INFO] running `Command { std: "docker" "inspect" "6874f88457a42926e539cba5146557d7d5e042c4510fff12a9be91667abef1e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6874f88457a42926e539cba5146557d7d5e042c4510fff12a9be91667abef1e7", kill_on_drop: false }` [INFO] [stdout] 6874f88457a42926e539cba5146557d7d5e042c4510fff12a9be91667abef1e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] e80eabc231eada391d2ab84ba8219c448735576d3ba1ad72121cd9a0d94e3fcd [INFO] running `Command { std: "docker" "start" "-a" "e80eabc231eada391d2ab84ba8219c448735576d3ba1ad72121cd9a0d94e3fcd", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/scst-223d79f40c8da06d) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test tests::test_options ... ok [INFO] [stdout] test config::test::test_config_from_yaml ... ok [INFO] [stdout] test tests::test_read_fl ... ok [INFO] [stdout] test scst_tgt::test::it_works ... ok [INFO] [stderr] Doc-tests scst [INFO] [stdout] test target::test::read_ips ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 22 tests [INFO] [stdout] test src/scst_tgt.rs - scst_tgt::Scst::add_device (line 86) - compile ... FAILED [INFO] [stdout] test src/target.rs - target::IniGroup::add_lun (line 629) - compile ... FAILED [INFO] [stdout] test src/scst_tgt.rs - scst_tgt::Scst::to_cfg (line 224) - compile ... ok [INFO] [stdout] test src/scst_tgt.rs - scst_tgt::Scst::init (line 28) - compile ... FAILED [INFO] [stdout] test src/target.rs - target::IniGroup::del_lun (line 694) - compile ... FAILED [INFO] [stdout] test src/handler.rs - handler::Handler::del_device (line 103) - compile ... FAILED [INFO] [stdout] test src/handler.rs - handler::Handler::add_device (line 42) - compile ... FAILED [INFO] [stdout] test src/target.rs - target::IniGroup::del_initiator (line 753) - compile ... FAILED [INFO] [stdout] test src/config.rs - config::Config::write_to (line 72) - compile ... FAILED [INFO] [stdout] test src/target.rs - target::IniGroup::add_initiator (line 726) - compile ... FAILED [INFO] [stdout] test src/scst_tgt.rs - scst_tgt::Scst::del_device (line 117) - compile ... FAILED [INFO] [stdout] test src/target.rs - target::Driver::del_target (line 133) - compile ... FAILED [INFO] [stdout] test src/target.rs - target::Driver::add_target (line 90) - compile ... FAILED [INFO] [stdout] test src/scst_tgt.rs - scst_tgt::Scst::from_cfg (line 139) - compile ... FAILED [INFO] [stdout] test src/target.rs - target::IniGroup::move_initiator (line 782) - compile ... FAILED [INFO] [stdout] test src/target.rs - target::IniGroup::clear_initiators (line 808) - compile ... FAILED [INFO] [stdout] test src/lib.rs - Options::pack (line 83) - compile ... ok [INFO] [stdout] test src/lib.rs - Options::pack_with_check (line 109) - compile ... ok [INFO] [stdout] test src/target.rs - target::Target::create_ini_group (line 481) - compile ... FAILED [INFO] [stdout] test src/target.rs - target::Target::del_lun (line 438) - compile ... FAILED [INFO] [stdout] test src/target.rs - target::Target::add_lun (line 375) - compile ... FAILED [INFO] [stdout] test src/target.rs - target::Target::del_ini_group (line 508) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/scst_tgt.rs - scst_tgt::Scst::add_device (line 86) 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/scst_tgt.rs:90:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_scst_tgt_rs_86_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_scst_tgt_rs_86_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options}; [INFO] [stdout] ... [INFO] [stdout] 12| scst.add_device("vdisk_blockio", "disk1", "/dev/sdb", &options)?; [INFO] [stdout] 13+ 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/scst_tgt.rs:95:64 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_scst_tgt_rs_86_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 12 | scst.add_device("vdisk_blockio", "disk1", "/dev/sdb", &options)?; [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_scst_tgt_rs_86_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options}; [INFO] [stdout] ... [INFO] [stdout] 12 | scst.add_device("vdisk_blockio", "disk1", "/dev/sdb", &options)?; [INFO] [stdout] 13 + 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/target.rs - target::IniGroup::add_lun (line 629) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/target.rs:631:26 [INFO] [stdout] | [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | let mut scst = Scst::init()?; [INFO] [stdout] | --- unexpected token [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/target.rs:633:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_629_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_target_rs_629_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11| group.add_lun("disk1", 0, &Options::new())?; [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/target.rs:635:74 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_629_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let target = scst.iscsi_mut().get_target_mut("iqn.2018-11.com.vine:test")?; [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_target_rs_629_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11| group.add_lun("disk1", 0, &Options::new())?; [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/target.rs:636:41 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_629_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | let group = target.get_ini_group("test")?; [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_target_rs_629_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11 | group.add_lun("disk1", 0, &Options::new())?; [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/target.rs:637:43 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_629_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | group.add_lun("disk1", 0, &Options::new())?; [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_target_rs_629_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11 | group.add_lun("disk1", 0, &Options::new())?; [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/scst_tgt.rs - scst_tgt::Scst::init (line 28) stdout ---- [INFO] [stdout] error: statements are terminated with a semicolon [INFO] [stdout] --> src/scst_tgt.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 7 | let scst = Scst::init()?: [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: use a semicolon instead [INFO] [stdout] | [INFO] [stdout] 7 - let scst = Scst::init()?: [INFO] [stdout] 7 + let scst = Scst::init()?; [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/scst_tgt.rs:32:24 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_scst_tgt_rs_28_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let scst = Scst::init()?: [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_scst_tgt_rs_28_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::Scst; [INFO] [stdout] 6 | [INFO] [stdout] 7 | let scst = Scst::init()?: [INFO] [stdout] 8 + 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/target.rs - target::IniGroup::del_lun (line 694) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/target.rs:696:26 [INFO] [stdout] | [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | let mut scst = Scst::init()?; [INFO] [stdout] | --- unexpected token [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/target.rs:698:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_694_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_target_rs_694_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11| group.del_lun(0)?; [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/target.rs:700:74 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_694_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let target = scst.iscsi_mut().get_target_mut("iqn.2018-11.com.vine:test")?; [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_target_rs_694_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11| group.del_lun(0)?; [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/target.rs:701:41 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_694_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | let group = target.get_ini_group("test")?; [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_target_rs_694_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11 | group.del_lun(0)?; [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/target.rs:702:17 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_694_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | group.del_lun(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_target_rs_694_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11 | group.del_lun(0)?; [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/handler.rs - handler::Handler::del_device (line 103) 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/handler.rs:107:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_handler_rs_103_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_handler_rs_103_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options}; [INFO] [stdout] ... [INFO] [stdout] 9 | scst.get_handler_mut("vdisk_blockio")?.del_device("disk1")?; [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/handler.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_handler_rs_103_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | scst.get_handler_mut("vdisk_blockio")?.del_device("disk1")?; [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_handler_rs_103_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options}; [INFO] [stdout] ... [INFO] [stdout] 9 | scst.get_handler_mut("vdisk_blockio")?.del_device("disk1")?; [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/handler.rs:109:59 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_handler_rs_103_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | scst.get_handler_mut("vdisk_blockio")?.del_device("disk1")?; [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_handler_rs_103_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options}; [INFO] [stdout] ... [INFO] [stdout] 9 | scst.get_handler_mut("vdisk_blockio")?.del_device("disk1")?; [INFO] [stdout] 10+ Ok(()) [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/handler.rs - handler::Handler::add_device (line 42) 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/handler.rs:46:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_handler_rs_42_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_handler_rs_42_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options}; [INFO] [stdout] ... [INFO] [stdout] 13| .add_device("disk1", "/dev/sdb", &options)?; [INFO] [stdout] 14+ 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/handler.rs:51:38 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_handler_rs_42_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 12 | scst.get_handler_mut("vdisk_blockio")? [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_handler_rs_42_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options}; [INFO] [stdout] ... [INFO] [stdout] 13 | .add_device("disk1", "/dev/sdb", &options)?; [INFO] [stdout] 14 + 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/handler.rs:52:45 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_handler_rs_42_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 13 | .add_device("disk1", "/dev/sdb", &options)?; [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_handler_rs_42_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options}; [INFO] [stdout] ... [INFO] [stdout] 13 | .add_device("disk1", "/dev/sdb", &options)?; [INFO] [stdout] 14 + Ok(()) [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/target.rs - target::IniGroup::del_initiator (line 753) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/target.rs:755:26 [INFO] [stdout] | [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | let mut scst = Scst::init()?; [INFO] [stdout] | --- unexpected token [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/target.rs:757:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_753_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_target_rs_753_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11| group.del_initiator("iqn.1988-12.com.oracle:d4ebaa45254")?; [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/target.rs:759:74 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_753_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let target = scst.iscsi_mut().get_target_mut("iqn.2018-11.com.vine:test")?; [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_target_rs_753_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11| group.del_initiator("iqn.1988-12.com.oracle:d4ebaa45254")?; [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/target.rs:760:41 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_753_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | let group = target.get_ini_group("test")?; [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_target_rs_753_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11 | group.del_initiator("iqn.1988-12.com.oracle:d4ebaa45254")?; [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/target.rs:761:58 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_753_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | group.del_initiator("iqn.1988-12.com.oracle:d4ebaa45254")?; [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_target_rs_753_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11 | group.del_initiator("iqn.1988-12.com.oracle:d4ebaa45254")?; [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/config.rs - config::Config::write_to (line 72) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Scst` [INFO] [stdout] --> src/config.rs:74:16 [INFO] [stdout] | [INFO] [stdout] 5 | let mut scst = Scst::init().expect("init scst"); [INFO] [stdout] | ^^^^ use of undeclared type `Scst` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scst::Scst; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Options` [INFO] [stdout] --> src/config.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 10 | &Options::new(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Options` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 10 - &Options::new(), [INFO] [stdout] 10 + &Option::new(), [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scst::Options; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Options` [INFO] [stdout] --> src/config.rs:84:45 [INFO] [stdout] | [INFO] [stdout] 15 | .add_target("iqn.2018-11.com.scst:vol", &Options::new())?; [INFO] [stdout] | ^^^^^^^ use of undeclared type `Options` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 15 - .add_target("iqn.2018-11.com.scst:vol", &Options::new())?; [INFO] [stdout] 15 + .add_target("iqn.2018-11.com.scst:vol", &Option::new())?; [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use scst::Options; [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 E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/target.rs - target::IniGroup::add_initiator (line 726) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/target.rs:728:26 [INFO] [stdout] | [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | let mut scst = Scst::init()?; [INFO] [stdout] | --- unexpected token [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/target.rs:730:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_726_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_target_rs_726_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11| group.add_initiator("iqn.1988-12.com.oracle:d4ebaa45254")?; [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/target.rs:732:74 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_726_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let target = scst.iscsi_mut().get_target_mut("iqn.2018-11.com.vine:test")?; [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_target_rs_726_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11| group.add_initiator("iqn.1988-12.com.oracle:d4ebaa45254")?; [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/target.rs:733:41 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_726_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | let group = target.get_ini_group("test")?; [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_target_rs_726_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11 | group.add_initiator("iqn.1988-12.com.oracle:d4ebaa45254")?; [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/target.rs:734:58 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_726_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | group.add_initiator("iqn.1988-12.com.oracle:d4ebaa45254")?; [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_target_rs_726_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11 | group.add_initiator("iqn.1988-12.com.oracle:d4ebaa45254")?; [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/scst_tgt.rs - scst_tgt::Scst::del_device (line 117) 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/scst_tgt.rs:121:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_scst_tgt_rs_117_0() { [INFO] [stdout] | ---------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_scst_tgt_rs_117_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options}; [INFO] [stdout] ... [INFO] [stdout] 9 | scst.del_device("vdisk_blockio", "disk1")?; [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/scst_tgt.rs:123:42 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_scst_tgt_rs_117_0() { [INFO] [stdout] | ---------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | scst.del_device("vdisk_blockio", "disk1")?; [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_scst_tgt_rs_117_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options}; [INFO] [stdout] ... [INFO] [stdout] 9 | scst.del_device("vdisk_blockio", "disk1")?; [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/target.rs - target::Driver::del_target (line 133) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/target.rs:135:26 [INFO] [stdout] | [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | let mut scst = Scst::init()?; [INFO] [stdout] | --- unexpected token [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/target.rs:137:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_133_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_target_rs_133_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10| scst.iscsi_mut().del_target("iqn.2018-11.com.vine:test")?; [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/target.rs:140:57 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_133_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | scst.iscsi_mut().del_target("iqn.2018-11.com.vine:test")?; [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_target_rs_133_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10 | scst.iscsi_mut().del_target("iqn.2018-11.com.vine:test")?; [INFO] [stdout] 11 + Ok(()) [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/target.rs - target::Driver::add_target (line 90) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/target.rs:92:26 [INFO] [stdout] | [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | let mut scst = Scst::init()?; [INFO] [stdout] | --- unexpected token [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/target.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_90_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_target_rs_90_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10| scst.iscsi_mut().add_target("iqn.2018-11.com.vine:test", &options)?; [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/target.rs:97:67 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_90_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | scst.iscsi_mut().add_target("iqn.2018-11.com.vine:test", &options)?; [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_target_rs_90_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10 | scst.iscsi_mut().add_target("iqn.2018-11.com.vine:test", &options)?; [INFO] [stdout] 11 + Ok(()) [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/scst_tgt.rs - scst_tgt::Scst::from_cfg (line 139) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/scst_tgt.rs:147:15 [INFO] [stdout] | [INFO] [stdout] 10 | let cfg = Config::read("/tmp/scst.yml")?; [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use scst::Config; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `scst1` in this scope [INFO] [stdout] --> src/scst_tgt.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 11 | scst1.from_cfg(&cfg)?; [INFO] [stdout] | ^^^^^ help: a local variable with a similar name exists: `scst` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/target.rs - target::IniGroup::move_initiator (line 782) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/target.rs:784:26 [INFO] [stdout] | [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | let mut scst = Scst::init()?; [INFO] [stdout] | --- unexpected token [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/target.rs:786:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_782_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_target_rs_782_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11| group.move_initiator("test1", "iqn.1988-12.com.oracle:d4ebaa45254")?; [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/target.rs:788:74 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_782_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let target = scst.iscsi_mut().get_target_mut("iqn.2018-11.com.vine:test")?; [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_target_rs_782_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11| group.move_initiator("test1", "iqn.1988-12.com.oracle:d4ebaa45254")?; [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/target.rs:789:41 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_782_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | let group = target.get_ini_group("test")?; [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_target_rs_782_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11 | group.move_initiator("test1", "iqn.1988-12.com.oracle:d4ebaa45254")?; [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/target.rs:790:68 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_782_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | group.move_initiator("test1", "iqn.1988-12.com.oracle:d4ebaa45254")?; [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_target_rs_782_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11 | group.move_initiator("test1", "iqn.1988-12.com.oracle:d4ebaa45254")?; [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/target.rs - target::IniGroup::clear_initiators (line 808) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/target.rs:810:26 [INFO] [stdout] | [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | let mut scst = Scst::init()?; [INFO] [stdout] | --- unexpected token [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/target.rs:812:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_808_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_target_rs_808_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11| group.clear_initiators()?; [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/target.rs:814:74 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_808_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let target = scst.iscsi_mut().get_target_mut("iqn.2018-11.com.vine:test")?; [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_target_rs_808_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11| group.clear_initiators()?; [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/target.rs:815:45 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_808_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | let mut group = target.get_ini_group("test")?; [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_target_rs_808_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11 | group.clear_initiators()?; [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/target.rs:816:25 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_808_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | group.clear_initiators()?; [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_target_rs_808_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 11 | group.clear_initiators()?; [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/target.rs - target::Target::create_ini_group (line 481) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/target.rs:483:26 [INFO] [stdout] | [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | let mut scst = Scst::init()?; [INFO] [stdout] | --- unexpected token [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/target.rs:485:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_481_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_target_rs_481_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10| target.create_ini_group("test")?; [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/target.rs:487:74 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_481_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let target = scst.iscsi_mut().get_target_mut("iqn.2018-11.com.vine:test")?; [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_target_rs_481_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10| target.create_ini_group("test")?; [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/target.rs:488:32 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_481_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | target.create_ini_group("test")?; [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_target_rs_481_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10 | target.create_ini_group("test")?; [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/target.rs - target::Target::del_lun (line 438) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/target.rs:440:26 [INFO] [stdout] | [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | let mut scst = Scst::init()?; [INFO] [stdout] | --- unexpected token [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/target.rs:442:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_438_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_target_rs_438_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10| target.del_lun(0)?; [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/target.rs:444:74 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_438_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let target = scst.iscsi_mut().get_target_mut("iqn.2018-11.com.vine:test")?; [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_target_rs_438_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10| target.del_lun(0)?; [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/target.rs:445:18 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_438_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | target.del_lun(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_target_rs_438_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10 | target.del_lun(0)?; [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/target.rs - target::Target::add_lun (line 375) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/target.rs:377:26 [INFO] [stdout] | [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | let mut scst = Scst::init()?; [INFO] [stdout] | --- unexpected token [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/target.rs:379:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_375_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_target_rs_375_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10| target.add_lun("disk1", 0, &Options::new())?; [INFO] [stdout] 11+ Ok(()) [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [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/target.rs:381:74 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_375_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let target = scst.iscsi_mut().get_target_mut("iqn.2018-11.com.vine:test")?; [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_target_rs_375_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10| target.add_lun("disk1", 0, &Options::new())?; [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/target.rs:382:44 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_375_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | target.add_lun("disk1", 0, &Options::new())?; [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_target_rs_375_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10 | target.add_lun("disk1", 0, &Options::new())?; [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/target.rs - target::Target::del_ini_group (line 508) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/target.rs:510:26 [INFO] [stdout] | [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | [INFO] [stdout] 7 | let mut scst = Scst::init()?; [INFO] [stdout] | --- unexpected token [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/target.rs:512:28 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_508_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | let mut scst = Scst::init()?; [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_target_rs_508_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10| target.del_ini_group("test")?; [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/target.rs:514:74 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_508_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let target = scst.iscsi_mut().get_target_mut("iqn.2018-11.com.vine:test")?; [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_target_rs_508_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10| target.del_ini_group("test")?; [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/target.rs:515:29 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_target_rs_508_0() { [INFO] [stdout] | -------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | target.del_ini_group("test")?; [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_target_rs_508_0() -> Result<(), Box> { [INFO] [stdout] 5 | use scst::{Scst, Options} [INFO] [stdout] ... [INFO] [stdout] 10 | target.del_ini_group("test")?; [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] [INFO] [stdout] failures: [INFO] [stdout] src/config.rs - config::Config::write_to (line 72) [INFO] [stdout] src/handler.rs - handler::Handler::add_device (line 42) [INFO] [stdout] src/handler.rs - handler::Handler::del_device (line 103) [INFO] [stdout] src/scst_tgt.rs - scst_tgt::Scst::add_device (line 86) [INFO] [stdout] src/scst_tgt.rs - scst_tgt::Scst::del_device (line 117) [INFO] [stdout] src/scst_tgt.rs - scst_tgt::Scst::from_cfg (line 139) [INFO] [stdout] src/scst_tgt.rs - scst_tgt::Scst::init (line 28) [INFO] [stdout] src/target.rs - target::Driver::add_target (line 90) [INFO] [stdout] src/target.rs - target::Driver::del_target (line 133) [INFO] [stdout] src/target.rs - target::IniGroup::add_initiator (line 726) [INFO] [stdout] src/target.rs - target::IniGroup::add_lun (line 629) [INFO] [stdout] src/target.rs - target::IniGroup::clear_initiators (line 808) [INFO] [stdout] src/target.rs - target::IniGroup::del_initiator (line 753) [INFO] [stdout] src/target.rs - target::IniGroup::del_lun (line 694) [INFO] [stdout] src/target.rs - target::IniGroup::move_initiator (line 782) [INFO] [stdout] src/target.rs - target::Target::add_lun (line 375) [INFO] [stdout] src/target.rs - target::Target::create_ini_group (line 481) [INFO] [stdout] src/target.rs - target::Target::del_ini_group (line 508) [INFO] [stdout] src/target.rs - target::Target::del_lun (line 438) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 19 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.47s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e80eabc231eada391d2ab84ba8219c448735576d3ba1ad72121cd9a0d94e3fcd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e80eabc231eada391d2ab84ba8219c448735576d3ba1ad72121cd9a0d94e3fcd", kill_on_drop: false }` [INFO] [stdout] e80eabc231eada391d2ab84ba8219c448735576d3ba1ad72121cd9a0d94e3fcd