[INFO] fetching crate documents 0.1.2... [INFO] testing documents-0.1.2 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate documents 0.1.2 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate documents 0.1.2 [INFO] finished tweaking crates.io crate documents 0.1.2 [INFO] tweaked toml for crates.io crate documents 0.1.2 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate documents 0.1.2 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 31 packages to latest compatible versions [INFO] [stderr] Adding directories v5.0.1 (available: v6.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b67e9891a9670a969c2970b4f2ff3364c4ae182436183b1685dce0cdda7acddb [INFO] running `Command { std: "docker" "start" "-a" "b67e9891a9670a969c2970b4f2ff3364c4ae182436183b1685dce0cdda7acddb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b67e9891a9670a969c2970b4f2ff3364c4ae182436183b1685dce0cdda7acddb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b67e9891a9670a969c2970b4f2ff3364c4ae182436183b1685dce0cdda7acddb", kill_on_drop: false }` [INFO] [stdout] b67e9891a9670a969c2970b4f2ff3364c4ae182436183b1685dce0cdda7acddb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 093ce6b53f7b86693c399ad5e94d97de686f6235531b079bff4751974e7ec75d [INFO] running `Command { std: "docker" "start" "-a" "093ce6b53f7b86693c399ad5e94d97de686f6235531b079bff4751974e7ec75d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling is-docker v0.2.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling is-wsl v0.4.0 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling open v5.3.2 [INFO] [stderr] Compiling directories v5.0.1 [INFO] [stderr] Compiling extend v1.2.0 [INFO] [stderr] Compiling documents v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.81s [INFO] running `Command { std: "docker" "inspect" "093ce6b53f7b86693c399ad5e94d97de686f6235531b079bff4751974e7ec75d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "093ce6b53f7b86693c399ad5e94d97de686f6235531b079bff4751974e7ec75d", kill_on_drop: false }` [INFO] [stdout] 093ce6b53f7b86693c399ad5e94d97de686f6235531b079bff4751974e7ec75d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 76cd50d192b75ef4b25536ec6886b294ad4b551f6917ac8197644177a08f2daf [INFO] running `Command { std: "docker" "start" "-a" "76cd50d192b75ef4b25536ec6886b294ad4b551f6917ac8197644177a08f2daf", kill_on_drop: false }` [INFO] [stderr] Compiling documents v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.49s [INFO] running `Command { std: "docker" "inspect" "76cd50d192b75ef4b25536ec6886b294ad4b551f6917ac8197644177a08f2daf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76cd50d192b75ef4b25536ec6886b294ad4b551f6917ac8197644177a08f2daf", kill_on_drop: false }` [INFO] [stdout] 76cd50d192b75ef4b25536ec6886b294ad4b551f6917ac8197644177a08f2daf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8fd332f6e0d04ddeca68f39004527a32d73f8405aef541ceb4dca7c4d209b1d5 [INFO] running `Command { std: "docker" "start" "-a" "8fd332f6e0d04ddeca68f39004527a32d73f8405aef541ceb4dca7c4d209b1d5", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/documents-cb29ee37f4f981f3) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test test::test1 ... ok [INFO] [stdout] test test::test2 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests documents [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/document.rs - document::Document::lines (line 278) ... FAILED [INFO] [stdout] test src/into_result.rs - into_result::Result>::into_result (line 68) ... FAILED [INFO] [stdout] test src/into_result.rs - into_result::()::into_result (line 36) ... FAILED [INFO] [stdout] test src/document.rs - document::Document::content (line 293) ... FAILED [INFO] [stdout] test src/mode.rs - mode::Mode::writable (line 40) ... FAILED [INFO] [stdout] test src/mode.rs - mode::Mode::appendable (line 53) ... FAILED [INFO] [stdout] test src/mode.rs - mode::Mode::readable (line 27) ... FAILED [INFO] [stdout] test src/lib.rs - with (line 38) ... FAILED [INFO] [stdout] test src/into_result.rs - into_result::IntoResult (line 8) ... FAILED [INFO] [stdout] test src/filesystem_entity.rs - filesystem_entity::FileSystemEntity (line 8) ... FAILED [INFO] [stdout] test src/into_result.rs - into_result::Option::into_result (line 49) ... FAILED [INFO] [stdout] test src/folder.rs - folder::User (line 131) ... ok [INFO] [stdout] test src/lib.rs - prelude (line 90) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/document.rs - document::Document::lines (line 278) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `document` in this scope [INFO] [stdout] --> src/document.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 3 | for line in document.lines().expect("Could not read lines") { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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/into_result.rs - into_result::Result>::into_result (line 68) stdout ---- [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/into_result.rs:69:16 [INFO] [stdout] | [INFO] [stdout] 3 | fn into_result(self) -> Result<(), Box> { [INFO] [stdout] | ^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Error` in this scope [INFO] [stdout] --> src/into_result.rs:69:44 [INFO] [stdout] | [INFO] [stdout] 3 | fn into_result(self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use std::error::Error; [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 E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/into_result.rs - into_result::()::into_result (line 36) stdout ---- [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/into_result.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 3 | fn into_result(self) -> Result<(), Box> { [INFO] [stdout] | ^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Error` in this scope [INFO] [stdout] --> src/into_result.rs:37:44 [INFO] [stdout] | [INFO] [stdout] 3 | fn into_result(self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use std::error::Error; [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 E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/document.rs - document::Document::content (line 293) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `document` in this scope [INFO] [stdout] --> src/document.rs:294:20 [INFO] [stdout] | [INFO] [stdout] 3 | let file_content = document.content().expect("Could not read content"); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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/mode.rs - mode::Mode::writable (line 40) stdout ---- [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/mode.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mode_rs_40_0() { [INFO] [stdout] | ------------------------------ this function can't have a `self` parameter [INFO] [stdout] 3 | match self { [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/mode.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 3 | / match self { [INFO] [stdout] 4 | | Self::Replace | Self::Append | Self::ReadAppend | Self::ReadReplace => true, [INFO] [stdout] 5 | | _ => false, [INFO] [stdout] 6 | | } [INFO] [stdout] | |_^ expected `()`, found `bool` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 6 | }; [INFO] [stdout] | + [INFO] [stdout] help: try adding a return type [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mode_rs_40_0() -> bool { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/mode.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 4 | Self::Replace | Self::Append | Self::ReadAppend | Self::ReadReplace => true, [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/mode.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 4 | Self::Replace | Self::Append | Self::ReadAppend | Self::ReadReplace => true, [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/mode.rs:42:36 [INFO] [stdout] | [INFO] [stdout] 4 | Self::Replace | Self::Append | Self::ReadAppend | Self::ReadReplace => true, [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/mode.rs:42:55 [INFO] [stdout] | [INFO] [stdout] 4 | Self::Replace | Self::Append | Self::ReadAppend | Self::ReadReplace => true, [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0424, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/mode.rs - mode::Mode::appendable (line 53) stdout ---- [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/mode.rs:54:7 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mode_rs_53_0() { [INFO] [stdout] | ------------------------------ this function can't have a `self` parameter [INFO] [stdout] 3 | match self { [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/mode.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 3 | / match self { [INFO] [stdout] 4 | | Self::Append | Self::ReadAppend => true, [INFO] [stdout] 5 | | _ => false, [INFO] [stdout] 6 | | } [INFO] [stdout] | |_^ expected `()`, found `bool` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 6 | }; [INFO] [stdout] | + [INFO] [stdout] help: try adding a return type [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mode_rs_53_0() -> bool { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/mode.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 4 | Self::Append | Self::ReadAppend => true, [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/mode.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 4 | Self::Append | Self::ReadAppend => true, [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0424, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/mode.rs - mode::Mode::readable (line 27) stdout ---- [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/mode.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mode_rs_27_0() { [INFO] [stdout] | ------------------------------ this function can't have a `self` parameter [INFO] [stdout] 3 | match self { [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/mode.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 3 | / match self { [INFO] [stdout] 4 | | Self::Read | Self::ReadReplace | Self::ReadAppend => true, [INFO] [stdout] 5 | | _ => false, [INFO] [stdout] 6 | | } [INFO] [stdout] | |_^ expected `()`, found `bool` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 6 | }; [INFO] [stdout] | + [INFO] [stdout] help: try adding a return type [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mode_rs_27_0() -> bool { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/mode.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 4 | Self::Read | Self::ReadReplace | Self::ReadAppend => true, [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/mode.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 4 | Self::Read | Self::ReadReplace | Self::ReadAppend => true, [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions [INFO] [stdout] --> src/mode.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 4 | Self::Read | Self::ReadReplace | Self::ReadAppend => true, [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0424, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - with (line 38) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `with` in this scope [INFO] [stdout] --> src/lib.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 3 | with( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use documents::with; [INFO] [stdout] | [INFO] [stdout] 2 + use open::with; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/lib.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 5 | Document::at(User(Pictures(&[])), "1.png", Create::No), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Document` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `User` in this scope [INFO] [stdout] --> src/lib.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 5 | Document::at(User(Pictures(&[])), "1.png", Create::No), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Folder::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Pictures` in this scope [INFO] [stdout] --> src/lib.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 5 | Document::at(User(Pictures(&[])), "1.png", Create::No), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + use documents::prelude::Pictures; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Create` [INFO] [stdout] --> src/lib.rs:41:52 [INFO] [stdout] | [INFO] [stdout] 5 | Document::at(User(Pictures(&[])), "1.png", Create::No), [INFO] [stdout] | ^^^^^^ use of undeclared type `Create` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Create; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/lib.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 6 | Document::at( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Document` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `User` in this scope [INFO] [stdout] --> src/lib.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 7 | User(Pictures(&["Movie Trailer"])), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Folder::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Pictures` in this scope [INFO] [stdout] --> src/lib.rs:43:18 [INFO] [stdout] | [INFO] [stdout] 7 | User(Pictures(&["Movie Trailer"])), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + use documents::prelude::Pictures; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Create` [INFO] [stdout] --> src/lib.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 9 | Create::OnlyIfNotExists, [INFO] [stdout] | ^^^^^^ use of undeclared type `Create` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Create; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/lib.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 12 | Document::at(User(Downloads(&[])), "file.txt", Create::AutoRenameIfExists), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Document` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `User` in this scope [INFO] [stdout] --> src/lib.rs:48:22 [INFO] [stdout] | [INFO] [stdout] 12 | Document::at(User(Downloads(&[])), "file.txt", Create::AutoRenameIfExists), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Folder::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Downloads` in this scope [INFO] [stdout] --> src/lib.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 12 | Document::at(User(Downloads(&[])), "file.txt", Create::AutoRenameIfExists), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + use documents::prelude::Downloads; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Create` [INFO] [stdout] --> src/lib.rs:48:56 [INFO] [stdout] | [INFO] [stdout] 12 | Document::at(User(Downloads(&[])), "file.txt", Create::AutoRenameIfExists), [INFO] [stdout] | ^^^^^^ use of undeclared type `Create` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Create; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 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/into_result.rs - into_result::IntoResult (line 8) stdout ---- [INFO] [stdout] error: expected identifier, found `(` [INFO] [stdout] --> src/into_result.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 10 | use(value); [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `(` [INFO] [stdout] --> src/into_result.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 16 | use(value); [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `IntoResult` in this scope [INFO] [stdout] --> src/into_result.rs:9:32 [INFO] [stdout] | [INFO] [stdout] 3 | fn may_fail_on_paper() -> impl IntoResult { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use documents::IntoResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `IntoResult` in this scope [INFO] [stdout] --> src/into_result.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 8 | fn may_fail_for_real() -> impl IntoResult { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use documents::IntoResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/into_result.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 9 | let value: T = get_value_or_fail()?; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 8 | fn may_fail_for_real() -> impl IntoResult { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `IntoResult` in this scope [INFO] [stdout] --> src/into_result.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 14 | fn may_be_none() -> impl IntoResult { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use documents::IntoResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/into_result.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 15 | let value: T = get_value_or_none()?; [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 14 | fn may_be_none() -> impl IntoResult { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `doesnt_actually_fail` in this scope [INFO] [stdout] --> src/into_result.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | doesnt_actually_fail(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_value_or_fail` in this scope [INFO] [stdout] --> src/into_result.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 9 | let value: T = get_value_or_fail()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_value_or_none` in this scope [INFO] [stdout] --> src/into_result.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 15 | let value: T = get_value_or_none()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/filesystem_entity.rs - filesystem_entity::FileSystemEntity (line 8) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `FileSystemEntity` in this scope [INFO] [stdout] --> src/filesystem_entity.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 4 | let a: &[&dyn FileSystemEntity] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use documents::FileSystemEntity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Document` [INFO] [stdout] --> src/filesystem_entity.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 5 | &Document::at(User(Pictures(&[""])), "pic", Create::No), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Document` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Document; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `User` in this scope [INFO] [stdout] --> src/filesystem_entity.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 5 | &Document::at(User(Pictures(&[""])), "pic", Create::No), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Folder::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Pictures` in this scope [INFO] [stdout] --> src/filesystem_entity.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 5 | &Document::at(User(Pictures(&[""])), "pic", Create::No), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + use documents::prelude::Pictures; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Create` [INFO] [stdout] --> src/filesystem_entity.rs:11:53 [INFO] [stdout] | [INFO] [stdout] 5 | &Document::at(User(Pictures(&[""])), "pic", Create::No), [INFO] [stdout] | ^^^^^^ use of undeclared type `Create` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Create; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `User` in this scope [INFO] [stdout] --> src/filesystem_entity.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 6 | &User(Pictures(&[""])), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Folder::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Pictures` in this scope [INFO] [stdout] --> src/filesystem_entity.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 6 | &User(Pictures(&[""])), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + use documents::prelude::Pictures; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Project` in this scope [INFO] [stdout] --> src/filesystem_entity.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 7 | &Project(Data(&[]).with_id("qualifier", "organization", "application")), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + use documents::Folder::Project; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Data` in this scope [INFO] [stdout] --> src/filesystem_entity.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 7 | &Project(Data(&[]).with_id("qualifier", "organization", "application")), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 2 + use documents::prelude::Data; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/filesystem_entity.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 8 | &PathBuf::new(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [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 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/into_result.rs - into_result::Option::into_result (line 49) stdout ---- [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/into_result.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 3 | fn into_result(self) -> Result<(), Box> { [INFO] [stdout] | ^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Error` in this scope [INFO] [stdout] --> src/into_result.rs:50:44 [INFO] [stdout] | [INFO] [stdout] 3 | fn into_result(self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `NoneError` in this scope [INFO] [stdout] --> src/into_result.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 6 | None => Err(Box::new(NoneError)), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/document.rs - document::Document::content (line 293) [INFO] [stdout] src/document.rs - document::Document::lines (line 278) [INFO] [stdout] src/filesystem_entity.rs - filesystem_entity::FileSystemEntity (line 8) [INFO] [stdout] src/into_result.rs - into_result::()::into_result (line 36) [INFO] [stdout] src/into_result.rs - into_result::IntoResult (line 8) [INFO] [stdout] src/into_result.rs - into_result::Option::into_result (line 49) [INFO] [stdout] src/into_result.rs - into_result::Result>::into_result (line 68) [INFO] [stdout] src/lib.rs - with (line 38) [INFO] [stdout] src/mode.rs - mode::Mode::appendable (line 53) [INFO] [stdout] src/mode.rs - mode::Mode::readable (line 27) [INFO] [stdout] src/mode.rs - mode::Mode::writable (line 40) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 11 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "8fd332f6e0d04ddeca68f39004527a32d73f8405aef541ceb4dca7c4d209b1d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fd332f6e0d04ddeca68f39004527a32d73f8405aef541ceb4dca7c4d209b1d5", kill_on_drop: false }` [INFO] [stdout] 8fd332f6e0d04ddeca68f39004527a32d73f8405aef541ceb4dca7c4d209b1d5