[INFO] cloning repository https://github.com/AliBasicCoder/fs-pro-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AliBasicCoder/fs-pro-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAliBasicCoder%2Ffs-pro-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAliBasicCoder%2Ffs-pro-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 71c3f36cf22d6417049edc786d03d75d4011a6e0 [INFO] testing AliBasicCoder/fs-pro-rust against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAliBasicCoder%2Ffs-pro-rust" "/workspace/builds/worker-63/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-63/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AliBasicCoder/fs-pro-rust on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AliBasicCoder/fs-pro-rust [INFO] finished tweaking git repo https://github.com/AliBasicCoder/fs-pro-rust [INFO] tweaked toml for git repo https://github.com/AliBasicCoder/fs-pro-rust written to /workspace/builds/worker-63/source/Cargo.toml [INFO] crate git repo https://github.com/AliBasicCoder/fs-pro-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-63/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-63/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 67f2cefb2c9b64290a77de76acd55ba095386b0967739f2d91421af0a5f8e8ce [INFO] running `Command { std: "docker" "start" "-a" "67f2cefb2c9b64290a77de76acd55ba095386b0967739f2d91421af0a5f8e8ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "67f2cefb2c9b64290a77de76acd55ba095386b0967739f2d91421af0a5f8e8ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67f2cefb2c9b64290a77de76acd55ba095386b0967739f2d91421af0a5f8e8ce", kill_on_drop: false }` [INFO] [stdout] 67f2cefb2c9b64290a77de76acd55ba095386b0967739f2d91421af0a5f8e8ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-63/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-63/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d19cd737d6b0f8a77a2f0a3151f0ac9288f6169234fd1c0a19a5d5aecc8988d [INFO] running `Command { std: "docker" "start" "-a" "5d19cd737d6b0f8a77a2f0a3151f0ac9288f6169234fd1c0a19a5d5aecc8988d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling syn v1.0.55 [INFO] [stderr] Compiling ppv-lite86 v0.2.9 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling fs_extra v1.2.0 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling fs_pro_macros v1.0.0 (/opt/rustwide/workdir/fs_pro_macros) [INFO] [stderr] Compiling fs_pro v1.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 37.25s [INFO] running `Command { std: "docker" "inspect" "5d19cd737d6b0f8a77a2f0a3151f0ac9288f6169234fd1c0a19a5d5aecc8988d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d19cd737d6b0f8a77a2f0a3151f0ac9288f6169234fd1c0a19a5d5aecc8988d", kill_on_drop: false }` [INFO] [stdout] 5d19cd737d6b0f8a77a2f0a3151f0ac9288f6169234fd1c0a19a5d5aecc8988d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-63/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-63/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94b14b49d62a2d2e3647faa9ae4be34e0cc1f8106e43590cfde463898f11b9cc [INFO] running `Command { std: "docker" "start" "-a" "94b14b49d62a2d2e3647faa9ae4be34e0cc1f8106e43590cfde463898f11b9cc", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling fs_pro v1.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/file.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | panic!(format!("invalid error \"{}\"", e.message)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 29 - panic!(format!("invalid error \"{}\"", e.message)); [INFO] [stdout] 29 + panic!("invalid error \"{}\"", e.message); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 13.05s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/fs_pro-3e079b3dbe8e45d7) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/fs_pro-90343bc765cf196a) [INFO] [stderr] Executable tests/dir.rs (/opt/rustwide/target/debug/deps/dir-d74d3c6f0df0babd) [INFO] [stderr] Executable tests/file.rs (/opt/rustwide/target/debug/deps/file-5eed0abc10d4c355) [INFO] [stderr] Executable tests/shape.rs (/opt/rustwide/target/debug/deps/shape-9ab965c7174370df) [INFO] running `Command { std: "docker" "inspect" "94b14b49d62a2d2e3647faa9ae4be34e0cc1f8106e43590cfde463898f11b9cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94b14b49d62a2d2e3647faa9ae4be34e0cc1f8106e43590cfde463898f11b9cc", kill_on_drop: false }` [INFO] [stdout] 94b14b49d62a2d2e3647faa9ae4be34e0cc1f8106e43590cfde463898f11b9cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-63/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-63/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0ccaacabfb78ad171f50cd852b280dcbe3981af427474bceef8cc405b3047d25 [INFO] running `Command { std: "docker" "start" "-a" "0ccaacabfb78ad171f50cd852b280dcbe3981af427474bceef8cc405b3047d25", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> tests/file.rs:29:16 [INFO] [stderr] | [INFO] [stderr] 29 | panic!(format!("invalid error \"{}\"", e.message)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the panic!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 29 - panic!(format!("invalid error \"{}\"", e.message)); [INFO] [stderr] 29 + panic!("invalid error \"{}\"", e.message); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `fs_pro` (test "file") generated 1 warning [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/fs_pro-3e079b3dbe8e45d7) [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] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/fs_pro-90343bc765cf196a) [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] Running tests/dir.rs (/opt/rustwide/target/debug/deps/dir-d74d3c6f0df0babd) [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test _dir ... ok [INFO] [stdout] test _file ... ok [INFO] [stdout] test create_all ... ok [INFO] [stdout] test create ... ok [INFO] [stdout] test name ... ok [INFO] [stdout] test temp_dir_rand_no_create ... ok [INFO] [stdout] test temp_dir_no_create ... ok [INFO] [stdout] test parent ... ok [INFO] [stdout] test parse_path ... ok [INFO] [stdout] test copy_with_progress ... ok [INFO] [stdout] test temp_dir_rand ... ok [INFO] [stdout] test temp_dir ... ok [INFO] [stdout] test new ... ok [INFO] [stdout] test copy ... ok [INFO] [stdout] test read ... ok [INFO] [stdout] test move_to ... ok [INFO] [stdout] test move_to_with_progress ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s [INFO] [stdout] [INFO] [stderr] Running tests/file.rs (/opt/rustwide/target/debug/deps/file-5eed0abc10d4c355) [INFO] [stdout] [INFO] [stdout] running 21 tests [INFO] [stderr] Running tests/shape.rs (/opt/rustwide/target/debug/deps/shape-9ab965c7174370df) [INFO] [stdout] test create ... ok [INFO] [stderr] Doc-tests fs_pro [INFO] [stdout] test directory ... ok [INFO] [stdout] test delete ... ok [INFO] [stdout] test append ... ok [INFO] [stdout] test create_all ... ok [INFO] [stdout] test copy ... ok [INFO] [stdout] test name ... ok [INFO] [stdout] test extension ... ok [INFO] [stdout] test exists ... ok [INFO] [stdout] test name_without_extension ... ok [INFO] [stdout] test parse_path ... ok [INFO] [stdout] test temp_file ... ok [INFO] [stdout] test rename ... ok [INFO] [stdout] test copy_with_progress ... ok [INFO] [stdout] test temp_file_rand ... ok [INFO] [stdout] test move_with_progress ... ok [INFO] [stdout] test new ... ok [INFO] [stdout] test write ... ok [INFO] [stdout] test move_to ... ok [INFO] [stdout] test read ... ok [INFO] [stdout] test read_to_string ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test main_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 45 tests [INFO] [stdout] test src/dir.rs - dir::Dir::create_dir_all (line 416) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::create_file_all (line 427) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::copy (line 260) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::copy_with_progress (line 279) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::create_file (line 188) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::get_details_entry (line 397) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::get_content2 (line 378) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::get_dir (line 248) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::get_content (line 367) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::create_dir (line 202) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::delete_file (line 216) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::move_to (line 313) ... FAILED [INFO] [stdout] test src/file.rs - file::File::extension (line 122) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::get_file (line 236) ... FAILED [INFO] [stdout] test src/file.rs - file::File::name (line 102) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::ls (line 443) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::delete_dir (line 226) ... FAILED [INFO] [stdout] test src/file.rs - file::File::rename (line 241) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::new (line 73) ... FAILED [INFO] [stdout] test src/file.rs - file::File::read_to_string (line 180) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::read (line 463) ... FAILED [INFO] [stdout] test src/file.rs - file::File::move_to (line 223) ... FAILED [INFO] [stdout] test src/file.rs - file::File::copy (line 213) ... FAILED [INFO] [stdout] test src/file.rs - file::File::write (line 165) ... FAILED [INFO] [stdout] test src/file.rs - file::File::temp_file (line 51) ... FAILED [INFO] [stdout] test src/file.rs - file::File::append (line 188) ... FAILED [INFO] [stdout] test src/file.rs - file::File::temp_file_no_create (line 62) ... FAILED [INFO] [stdout] test src/file.rs - file::File::new (line 27) ... FAILED [INFO] [stdout] test src/shape.rs - shape::Shape (line 63) ... FAILED [INFO] [stdout] test src/file.rs - file::File::read (line 173) ... FAILED [INFO] [stdout] test src/file.rs - file::File::set_permissions (line 255) ... FAILED [INFO] [stdout] test src/file.rs - file::File::move_with_progress (line 286) ... FAILED [INFO] [stdout] test src/lib.rs - (line 19) ... FAILED [INFO] [stdout] test src/dir.rs - dir::Dir::move_to_with_progress (line 332) ... FAILED [INFO] [stdout] test src/file.rs - file::File::copy_with_progress (line 265) ... FAILED [INFO] [stdout] test src/file.rs - file::File::name_without_extension (line 112) ... FAILED [INFO] [stdout] test src/file.rs - file::File::temp_file_rand (line 74) ... ok [INFO] [stdout] test src/dir.rs - dir::Dir::name (line 145) ... ok [INFO] [stdout] test src/file.rs - file::File::temp_file_rand_no_create (line 83) ... ok [INFO] [stdout] test src/dir.rs - dir::Dir::temp_dir (line 94) ... ok [INFO] [stdout] test src/dir.rs - dir::Dir::temp_dir_rand_no_create (line 126) ... ok [INFO] [stdout] test src/file.rs - file::File::parent (line 92) ... ok [INFO] [stdout] test src/dir.rs - dir::Dir::temp_dir_rand (line 117) ... ok [INFO] [stdout] test src/dir.rs - dir::Dir::temp_dir_no_create (line 105) ... ok [INFO] [stdout] test src/dir.rs - dir::Dir::parent (line 135) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/dir.rs - dir::Dir::create_dir_all (line 416) stdout ---- [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/dir.rs:417:49 [INFO] [stdout] | [INFO] [stdout] 3 | let sub_dir = dir.create_dir_all("foo/bar/some") // creates foo and bar and some [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | } _doctest_main_src_dir_rs_416_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:417:15 [INFO] [stdout] | [INFO] [stdout] 3 | let sub_dir = dir.create_dir_all("foo/bar/some") // creates foo and bar and some [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::create_file_all (line 427) stdout ---- [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/dir.rs:428:51 [INFO] [stdout] | [INFO] [stdout] 3 | let file = dir.create_file_all("foo/bar/some.txt") // creates foo and bar and some.txt [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | } _doctest_main_src_dir_rs_427_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:428:12 [INFO] [stdout] | [INFO] [stdout] 3 | let file = dir.create_file_all("foo/bar/some.txt") // creates foo and bar and some.txt [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::copy (line 260) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:261:16 [INFO] [stdout] | [INFO] [stdout] 3 | let dir_copy = dir.copy("copy_path")?; [INFO] [stdout] | ^^^ not found in this scope [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/dir.rs:261:37 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_260_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dir_copy = dir.copy("copy_path")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | dir_copy.create_file("some_file")?; [INFO] [stdout] 5 | | // ... [INFO] [stdout] 6 | | } _doctest_main_src_dir_rs_260_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [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/dir.rs:262:34 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_260_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dir_copy = dir.copy("copy_path")?; [INFO] [stdout] 4 | | dir_copy.create_file("some_file")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | // ... [INFO] [stdout] 6 | | } _doctest_main_src_dir_rs_260_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::copy_with_progress (line 279) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/dir.rs:287:2 [INFO] [stdout] | [INFO] [stdout] 10 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 11 | let dir_copy = dir.copy_with_progress("dest_path", &options, handle)?; [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:288:16 [INFO] [stdout] | [INFO] [stdout] 11 | let dir_copy = dir.copy_with_progress("dest_path", &options, handle)?; [INFO] [stdout] | ^^^ not found in this scope [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/dir.rs:288:69 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_279_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use fs_extra::dir::{CopyOptions, TransitProcess, TransitProcessResult}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let options = CopyOptions::new(); [INFO] [stdout] ... | [INFO] [stdout] 11 | | let dir_copy = dir.copy_with_progress("dest_path", &options, handle)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | } _doctest_main_src_dir_rs_279_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::create_file (line 188) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 3 | let file = dir.create_file("hi.txt")?; [INFO] [stdout] | ^^^ not found in this scope [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/dir.rs:189:37 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_188_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let file = dir.create_file("hi.txt")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | file.write("some thing")?; [INFO] [stdout] 5 | | // ... [INFO] [stdout] 6 | | } _doctest_main_src_dir_rs_188_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [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/dir.rs:190:25 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_188_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let file = dir.create_file("hi.txt")?; [INFO] [stdout] 4 | | file.write("some thing")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | // ... [INFO] [stdout] 6 | | } _doctest_main_src_dir_rs_188_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::get_details_entry (line 397) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:406:18 [INFO] [stdout] | [INFO] [stdout] 11 | let entry_info = dir.get_details_entry(&config); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::get_content2 (line 378) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `get_dir_content2` in this scope [INFO] [stdout] --> src/dir.rs:384:19 [INFO] [stdout] | [INFO] [stdout] 8 | let dir_content = get_dir_content2("dir", &options)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use fs_extra::dir::get_dir_content2; [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/dir.rs:384:52 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_378_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use fs_extra::dir::DirOptions; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let options = DirOptions::new(); [INFO] [stdout] 7 | | options.depth = 3; // Get 3 levels of folder. [INFO] [stdout] 8 | | let dir_content = get_dir_content2("dir", &options)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 11 | | } [INFO] [stdout] 12 | | } _doctest_main_src_dir_rs_378_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::get_dir (line 248) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:249:15 [INFO] [stdout] | [INFO] [stdout] 3 | let sub_dir = dir.get_dir("sub_dir")?; [INFO] [stdout] | ^^^ not found in this scope [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/dir.rs:249:37 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_248_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let sub_dir = dir.get_dir("sub_dir")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | sub_dir.create()?; [INFO] [stdout] 5 | | // ... [INFO] [stdout] 6 | | } _doctest_main_src_dir_rs_248_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [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/dir.rs:250:17 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_248_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let sub_dir = dir.get_dir("sub_dir")?; [INFO] [stdout] 4 | | sub_dir.create()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | // ... [INFO] [stdout] 6 | | } _doctest_main_src_dir_rs_248_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::get_content (line 367) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:368:19 [INFO] [stdout] | [INFO] [stdout] 3 | let dir_content = dir.get_content()?; [INFO] [stdout] | ^^^ not found in this scope [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/dir.rs:368:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_367_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dir_content = dir.get_content()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | for directory in dir_content.directories { [INFO] [stdout] 5 | | println!("{}", directory); // print directory path [INFO] [stdout] 6 | | } [INFO] [stdout] 7 | | } _doctest_main_src_dir_rs_367_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::create_dir (line 202) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:203:15 [INFO] [stdout] | [INFO] [stdout] 3 | let sub_dir = dir.create_dir("sub_dir")?; [INFO] [stdout] | ^^^ not found in this scope [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/dir.rs:203:40 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_202_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let sub_dir = dir.create_dir("sub_dir")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | sub_dir.create_file("hello.txt")?; [INFO] [stdout] 5 | | // ... [INFO] [stdout] 6 | | } _doctest_main_src_dir_rs_202_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [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/dir.rs:204:33 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_202_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let sub_dir = dir.create_dir("sub_dir")?; [INFO] [stdout] 4 | | sub_dir.create_file("hello.txt")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | // ... [INFO] [stdout] 6 | | } _doctest_main_src_dir_rs_202_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::delete_file (line 216) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 3 | dir.delete_file("to_delete.txt")?; [INFO] [stdout] | ^^^ not found in this scope [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/dir.rs:217:33 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_216_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | dir.delete_file("to_delete.txt")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_dir_rs_216_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::move_to (line 313) stdout ---- [INFO] [stdout] error: expected identifier, found keyword `move` [INFO] [stdout] --> src/dir.rs:314:11 [INFO] [stdout] | [INFO] [stdout] 3 | dir = dir.move("dest")?; [INFO] [stdout] | ^^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `move` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 3 | dir = dir.r#move("dest")?; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:314:1 [INFO] [stdout] | [INFO] [stdout] 3 | dir = dir.move("dest")?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:314:7 [INFO] [stdout] | [INFO] [stdout] 3 | dir = dir.move("dest")?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 4 | dir.create_file("some_file")?; [INFO] [stdout] | ^^^ not found in this scope [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/dir.rs:314:23 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_313_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | dir = dir.move("dest")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | dir.create_file("some_file")?; [INFO] [stdout] 5 | | // ... [INFO] [stdout] 6 | | } _doctest_main_src_dir_rs_313_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [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/dir.rs:315:29 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_313_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | dir = dir.move("dest")?; [INFO] [stdout] 4 | | dir.create_file("some_file")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | // ... [INFO] [stdout] 6 | | } _doctest_main_src_dir_rs_313_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::extension (line 122) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/file.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 4 | use fs_pro::File [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | [INFO] [stdout] 6 | let file = File::new("my_file.txt").unwrap(); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::get_file (line 236) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:237:12 [INFO] [stdout] | [INFO] [stdout] 3 | let file = dir.get_file("my_file.txt")?; [INFO] [stdout] | ^^^ not found in this scope [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/dir.rs:237:39 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_236_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let file = dir.get_file("my_file.txt")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | file.create()?; [INFO] [stdout] 5 | | // ... [INFO] [stdout] 6 | | } _doctest_main_src_dir_rs_236_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [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/dir.rs:238:14 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_236_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let file = dir.get_file("my_file.txt")?; [INFO] [stdout] 4 | | file.create()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | // ... [INFO] [stdout] 6 | | } _doctest_main_src_dir_rs_236_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::name (line 102) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/file.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 4 | use fs_pro::File [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | [INFO] [stdout] 6 | let file = File::new("my_file.txt").unwrap(); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::ls (line 443) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:452:14 [INFO] [stdout] | [INFO] [stdout] 11 | let result = dir.ls(&config); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ls_result` in this scope [INFO] [stdout] --> src/dir.rs:453:15 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(2, ls_result.items.len()); [INFO] [stdout] | ^^^^^^^^^ help: a local variable with a similar name exists: `result` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ls_result` in this scope [INFO] [stdout] --> src/dir.rs:454:15 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(2, ls_result.base.len()); [INFO] [stdout] | ^^^^^^^^^ help: a local variable with a similar name exists: `result` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::delete_dir (line 226) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 3 | dir.delete_dir("sub_dir")?; [INFO] [stdout] | ^^^ not found in this scope [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/dir.rs:227:26 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_226_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | dir.delete_dir("sub_dir")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_dir_rs_226_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::rename (line 241) stdout ---- [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:242:20 [INFO] [stdout] | [INFO] [stdout] 3 | let file_renamed = file.rename("new_name.txt"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:244:1 [INFO] [stdout] | [INFO] [stdout] 5 | file = file.rename("new_name.txt"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 5 | file = file.rename("new_name.txt"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::new (line 73) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/dir.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 7 | let dir = Dir::new(Path::new("/path/to/dir")).unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/dir.rs:78:20 [INFO] [stdout] | [INFO] [stdout] 8 | let dir = Dir::new(PathBuf::from("/path/to/dir")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [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 E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::read_to_string (line 180) stdout ---- [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:181:1 [INFO] [stdout] | [INFO] [stdout] 3 | file.read_to_string() // => "hello" [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::read (line 463) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `my_dir` in this scope [INFO] [stdout] --> src/dir.rs:465:14 [INFO] [stdout] | [INFO] [stdout] 5 | for entry in my_dir.read()? { [INFO] [stdout] | ^^^^^^ not found in this scope [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/dir.rs:465:27 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_463_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use fs_pro::DirEntry; [INFO] [stdout] 5 | | for entry in my_dir.read()? { [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | match entry { [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] 15 | | } _doctest_main_src_dir_rs_463_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::move_to (line 223) stdout ---- [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:224:18 [INFO] [stdout] | [INFO] [stdout] 3 | let file_moved = file.move_to("dest"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:226:1 [INFO] [stdout] | [INFO] [stdout] 5 | file = file.move_to("dest"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:226:8 [INFO] [stdout] | [INFO] [stdout] 5 | file = file.move_to("dest"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::copy (line 213) stdout ---- [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:214:17 [INFO] [stdout] | [INFO] [stdout] 3 | let file_copy = file.copy("dest.txt"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::write (line 165) stdout ---- [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 3 | file.write("hi"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 4 | file.write(vec![10, 100, 100]); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::temp_file (line 51) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fir` [INFO] [stdout] --> src/file.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 6 | let temp_file = Fir::temp_file("name").unwrap(); [INFO] [stdout] | ^^^ use of undeclared type `Fir` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::append (line 188) stdout ---- [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:189:1 [INFO] [stdout] | [INFO] [stdout] 3 | file.append(b"hello world"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 4 | file.append("hello world"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:191:1 [INFO] [stdout] | [INFO] [stdout] 5 | file.append("hello world".to_string()); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::temp_file_no_create (line 62) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fir` [INFO] [stdout] --> src/file.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 6 | let temp_file = Fir::temp_file_no_create("name").unwrap(); [INFO] [stdout] | ^^^ use of undeclared type `Fir` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::new (line 27) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/file.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 7 | let path = File::new(Path::new("/path/to/path")).unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/file.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 8 | let path = File::new(PathBuf::from("/path/to/path")); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [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 E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/shape.rs - shape::Shape (line 63) stdout ---- [INFO] [stdout] error[E0585]: found a documentation comment that doesn't document anything [INFO] [stdout] --> src/shape.rs:70:3 [INFO] [stdout] | [INFO] [stdout] 9 | /// ... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: doc comments must come before what they document, maybe a comment was intended with `//`? [INFO] [stdout] [INFO] [stdout] error: expected `,` [INFO] [stdout] --> src/shape.rs:70:3 [INFO] [stdout] | [INFO] [stdout] 9 | /// ... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: all fileds must be public [INFO] [stdout] --> src/shape.rs:75:3 [INFO] [stdout] | [INFO] [stdout] 14 | / #[name = "my_file.txt"] [INFO] [stdout] 15 | | my_file: File, [INFO] [stdout] | |_______________^ [INFO] [stdout] [INFO] [stdout] error: all fileds must be public [INFO] [stdout] --> src/shape.rs:77:3 [INFO] [stdout] | [INFO] [stdout] 16 | / #[pattern = "*.txt"] [INFO] [stdout] 17 | | my_dir: Dir, [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] error: all fileds must be public [INFO] [stdout] --> src/shape.rs:79:3 [INFO] [stdout] | [INFO] [stdout] 18 | child_shaped_dir: ChildShapedDir [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MyShapedDir: ShapeDescribe` is not satisfied [INFO] [stdout] --> src/shape.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 22 | let shape: Shape = Shape::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `ShapeDescribe` is not implemented for `MyShapedDir` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Shape` [INFO] [stdout] --> /opt/rustwide/workdir/src/shape.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct Shape { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `Shape` [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `create_at` exists for struct `Shape`, but its trait bounds were not satisfied [INFO] [stdout] --> src/shape.rs:84:26 [INFO] [stdout] | [INFO] [stdout] 13 | struct MyShapedDir { [INFO] [stdout] | ------------------ doesn't satisfy `MyShapedDir: ShapeDescribe` [INFO] [stdout] ... [INFO] [stdout] 23 | let shape_inst = shape.create_at("target").unwrap(); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Shape` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `MyShapedDir: ShapeDescribe` [INFO] [stdout] note: the following trait must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/shape.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | / pub trait ShapeDescribe { [INFO] [stdout] 41 | | fn shape_describe() -> &'static ShapeSchemaStatic<'static>; [INFO] [stdout] 42 | | fn shape_new(inst: ShapeInst) -> Self; [INFO] [stdout] 43 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MyShapedDir: ShapeDescribe` is not satisfied [INFO] [stdout] --> src/shape.rs:83:35 [INFO] [stdout] | [INFO] [stdout] 22 | let shape: Shape = Shape::new(); [INFO] [stdout] | ^^^^^^^^^^ the trait `ShapeDescribe` is not implemented for `MyShapedDir` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Shape::::new` [INFO] [stdout] --> /opt/rustwide/workdir/src/shape.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | impl Shape { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `Shape::::new` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MyShapedDir: ShapeDescribe` is not satisfied [INFO] [stdout] --> src/shape.rs:83:35 [INFO] [stdout] | [INFO] [stdout] 22 | let shape: Shape = Shape::new(); [INFO] [stdout] | ^^^^^ the trait `ShapeDescribe` is not implemented for `MyShapedDir` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Shape` [INFO] [stdout] --> /opt/rustwide/workdir/src/shape.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | pub struct Shape { [INFO] [stdout] | ^^^^^^^^^^^^^ required by this bound in `Shape` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0585, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::read (line 173) stdout ---- [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 3 | file.read() // => [10, 124, ...] [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::set_permissions (line 255) stdout ---- [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:256:16 [INFO] [stdout] | [INFO] [stdout] 3 | let mut perm = file.metadata()?.permissions(); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `perms` in this scope [INFO] [stdout] --> src/file.rs:257:1 [INFO] [stdout] | [INFO] [stdout] 4 | perms.set_readonly(true); [INFO] [stdout] | ^^^^^ help: a local variable with a similar name exists: `perm` [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:258:1 [INFO] [stdout] | [INFO] [stdout] 5 | file.set_permissions(perms)?; [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `perms` in this scope [INFO] [stdout] --> src/file.rs:258:22 [INFO] [stdout] | [INFO] [stdout] 5 | file.set_permissions(perms)?; [INFO] [stdout] | ^^^^^ help: a local variable with a similar name exists: `perm` [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/file.rs:256:31 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_file_rs_255_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut perm = file.metadata()?.permissions(); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | perms.set_readonly(true); [INFO] [stdout] 5 | | file.set_permissions(perms)?; [INFO] [stdout] 6 | | } _doctest_main_src_file_rs_255_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [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/file.rs:258:28 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_file_rs_255_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let mut perm = file.metadata()?.permissions(); [INFO] [stdout] 4 | | perms.set_readonly(true); [INFO] [stdout] 5 | | file.set_permissions(perms)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | } _doctest_main_src_file_rs_255_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0423, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::move_with_progress (line 286) stdout ---- [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:288:1 [INFO] [stdout] | [INFO] [stdout] 4 | file.move_file_with_progress("dest", &fs_extra::file::CopyOptions::new(), |prg| { [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 19) stdout ---- [INFO] [stdout] error[E0599]: no method named `create` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 8 | file.create(); [INFO] [stdout] | ^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 10 | file.write("hello there"); [INFO] [stdout] | ^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_to_string` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 12 | file.read_to_string(); // => "hello there" [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `create` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 16 | dir.create(); [INFO] [stdout] | ^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `create_file` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 18 | dir.create_file("my_file.txt").unwrap().write("hello world"); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `create_dir` found for enum `Result` in the current scope [INFO] [stdout] --> src/lib.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 20 | dir.create_dir("my_dir"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Result` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() -> Result<()> { [INFO] [stdout] | ---- ^^^^^^^^^^ expected enum `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), fs_pro::error::Error>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dir.rs - dir::Dir::move_to_with_progress (line 332) stdout ---- [INFO] [stdout] error: expected `;`, found `dir` [INFO] [stdout] --> src/dir.rs:340:2 [INFO] [stdout] | [INFO] [stdout] 10 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 11 | dir = dir.move_with_progress("dest_path", &options, handle)?; [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:341:1 [INFO] [stdout] | [INFO] [stdout] 11 | dir = dir.move_with_progress("dest_path", &options, handle)?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/dir.rs:341:7 [INFO] [stdout] | [INFO] [stdout] 11 | dir = dir.move_with_progress("dest_path", &options, handle)?; [INFO] [stdout] | ^^^ not found in this scope [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/dir.rs:341:60 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_dir_rs_332_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use fs_extra::dir::{CopyOptions, TransitProcess, TransitProcessResult}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let options = CopyOptions::new(); [INFO] [stdout] ... | [INFO] [stdout] 11 | | dir = dir.move_with_progress("dest_path", &options, handle)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | } _doctest_main_src_dir_rs_332_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::copy_with_progress (line 265) stdout ---- [INFO] [stdout] error[E0423]: expected value, found macro `file` [INFO] [stdout] --> src/file.rs:267:1 [INFO] [stdout] | [INFO] [stdout] 4 | file.copy_with_progress("dest", &fs_extra::file::CopyOptions::new(), |prg| { [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/file.rs - file::File::name_without_extension (line 112) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/file.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 4 | use fs_pro::File [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | [INFO] [stdout] 6 | let file = File::new("my_file.txt").unwrap(); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/dir.rs - dir::Dir::copy (line 260) [INFO] [stdout] src/dir.rs - dir::Dir::copy_with_progress (line 279) [INFO] [stdout] src/dir.rs - dir::Dir::create_dir (line 202) [INFO] [stdout] src/dir.rs - dir::Dir::create_dir_all (line 416) [INFO] [stdout] src/dir.rs - dir::Dir::create_file (line 188) [INFO] [stdout] src/dir.rs - dir::Dir::create_file_all (line 427) [INFO] [stdout] src/dir.rs - dir::Dir::delete_dir (line 226) [INFO] [stdout] src/dir.rs - dir::Dir::delete_file (line 216) [INFO] [stdout] src/dir.rs - dir::Dir::get_content (line 367) [INFO] [stdout] src/dir.rs - dir::Dir::get_content2 (line 378) [INFO] [stdout] src/dir.rs - dir::Dir::get_details_entry (line 397) [INFO] [stdout] src/dir.rs - dir::Dir::get_dir (line 248) [INFO] [stdout] src/dir.rs - dir::Dir::get_file (line 236) [INFO] [stdout] src/dir.rs - dir::Dir::ls (line 443) [INFO] [stdout] src/dir.rs - dir::Dir::move_to (line 313) [INFO] [stdout] src/dir.rs - dir::Dir::move_to_with_progress (line 332) [INFO] [stdout] src/dir.rs - dir::Dir::new (line 73) [INFO] [stdout] src/dir.rs - dir::Dir::read (line 463) [INFO] [stdout] src/file.rs - file::File::append (line 188) [INFO] [stdout] src/file.rs - file::File::copy (line 213) [INFO] [stdout] src/file.rs - file::File::copy_with_progress (line 265) [INFO] [stdout] src/file.rs - file::File::extension (line 122) [INFO] [stdout] src/file.rs - file::File::move_to (line 223) [INFO] [stdout] src/file.rs - file::File::move_with_progress (line 286) [INFO] [stdout] src/file.rs - file::File::name (line 102) [INFO] [stdout] src/file.rs - file::File::name_without_extension (line 112) [INFO] [stdout] src/file.rs - file::File::new (line 27) [INFO] [stdout] src/file.rs - file::File::read (line 173) [INFO] [stdout] src/file.rs - file::File::read_to_string (line 180) [INFO] [stdout] src/file.rs - file::File::rename (line 241) [INFO] [stdout] src/file.rs - file::File::set_permissions (line 255) [INFO] [stdout] src/file.rs - file::File::temp_file (line 51) [INFO] [stdout] src/file.rs - file::File::temp_file_no_create (line 62) [INFO] [stdout] src/file.rs - file::File::write (line 165) [INFO] [stdout] src/lib.rs - (line 19) [INFO] [stdout] src/shape.rs - shape::Shape (line 63) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 9 passed; 36 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.12s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "0ccaacabfb78ad171f50cd852b280dcbe3981af427474bceef8cc405b3047d25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ccaacabfb78ad171f50cd852b280dcbe3981af427474bceef8cc405b3047d25", kill_on_drop: false }` [INFO] [stdout] 0ccaacabfb78ad171f50cd852b280dcbe3981af427474bceef8cc405b3047d25