[INFO] fetching crate documents 0.1.2... [INFO] testing documents-0.1.2 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate documents 0.1.2 into /workspace/builds/worker-7-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-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate documents 0.1.2 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d64d4e476bc119b2f2b35f983a21eb462e64b1d95a3eb4b4c56bf038fcabe14 [INFO] running `Command { std: "docker" "start" "-a" "5d64d4e476bc119b2f2b35f983a21eb462e64b1d95a3eb4b4c56bf038fcabe14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d64d4e476bc119b2f2b35f983a21eb462e64b1d95a3eb4b4c56bf038fcabe14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d64d4e476bc119b2f2b35f983a21eb462e64b1d95a3eb4b4c56bf038fcabe14", kill_on_drop: false }` [INFO] [stdout] 5d64d4e476bc119b2f2b35f983a21eb462e64b1d95a3eb4b4c56bf038fcabe14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b227fc01d4125d252e3f8fce96457c24c7f84d336d6baac2c53e6ee42fedb458 [INFO] running `Command { std: "docker" "start" "-a" "b227fc01d4125d252e3f8fce96457c24c7f84d336d6baac2c53e6ee42fedb458", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.110 [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 6.84s [INFO] running `Command { std: "docker" "inspect" "b227fc01d4125d252e3f8fce96457c24c7f84d336d6baac2c53e6ee42fedb458", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b227fc01d4125d252e3f8fce96457c24c7f84d336d6baac2c53e6ee42fedb458", kill_on_drop: false }` [INFO] [stdout] b227fc01d4125d252e3f8fce96457c24c7f84d336d6baac2c53e6ee42fedb458 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 241f4f6ba5632f729bcfd2df28e2f0c40a9f874c29df0dfa4ddcd8c6ad8b2703 [INFO] running `Command { std: "docker" "start" "-a" "241f4f6ba5632f729bcfd2df28e2f0c40a9f874c29df0dfa4ddcd8c6ad8b2703", 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.72s [INFO] running `Command { std: "docker" "inspect" "241f4f6ba5632f729bcfd2df28e2f0c40a9f874c29df0dfa4ddcd8c6ad8b2703", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "241f4f6ba5632f729bcfd2df28e2f0c40a9f874c29df0dfa4ddcd8c6ad8b2703", kill_on_drop: false }` [INFO] [stdout] 241f4f6ba5632f729bcfd2df28e2f0c40a9f874c29df0dfa4ddcd8c6ad8b2703 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b005ba6880f324e205d4f63baa773e92ebea8d47379e1335418c36a2c869b2b5 [INFO] running `Command { std: "docker" "start" "-a" "b005ba6880f324e205d4f63baa773e92ebea8d47379e1335418c36a2c869b2b5", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/documents-0075337d93a56283) [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/lib.rs - with (line 38) ... FAILED [INFO] [stdout] test src/into_result.rs - into_result::()::into_result (line 36) ... 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/into_result.rs - into_result::Result>::into_result (line 68) ... 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/mode.rs - mode::Mode::readable (line 27) ... FAILED [INFO] [stdout] test src/into_result.rs - into_result::Option::into_result (line 49) ... FAILED [INFO] [stdout] test src/document.rs - document::Document::content (line 293) ... 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] 279 | 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/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] 39 | with( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 38 + use documents::with; [INFO] [stdout] | [INFO] [stdout] 38 + 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] 41 | 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] 38 + 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] 41 | 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] 38 + 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] 41 | 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] 38 + 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] 41 | 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] 38 + 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] 42 | Document::at( [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Document` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 38 + 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] 43 | 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] 38 + 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] 43 | 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] 38 + 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] 45 | Create::OnlyIfNotExists, [INFO] [stdout] | ^^^^^^ use of undeclared type `Create` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 38 + 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] 48 | 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] 38 + 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] 48 | 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] 38 + 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] 48 | 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] 38 + 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] 48 | 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] 38 + 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::()::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] 37 | 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] 37 | 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] 36 + 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/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] 40 | 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] 41 | 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] 41 | / match self { [INFO] [stdout] 42 | | Self::Replace | Self::Append | Self::ReadAppend | Self::ReadReplace => true, [INFO] [stdout] 43 | | _ => false, [INFO] [stdout] 44 | | } [INFO] [stdout] | |_^ expected `()`, found `bool` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 44 | }; [INFO] [stdout] | + [INFO] [stdout] help: try adding a return type [INFO] [stdout] | [INFO] [stdout] 40 | 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] 42 | 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] 42 | 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] 42 | 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] 42 | 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] 53 | 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] 54 | 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] 54 | / match self { [INFO] [stdout] 55 | | Self::Append | Self::ReadAppend => true, [INFO] [stdout] 56 | | _ => false, [INFO] [stdout] 57 | | } [INFO] [stdout] | |_^ expected `()`, found `bool` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 57 | }; [INFO] [stdout] | + [INFO] [stdout] help: try adding a return type [INFO] [stdout] | [INFO] [stdout] 53 | 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] 55 | 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] 55 | 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/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] 69 | 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] 69 | 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] 68 + 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::IntoResult (line 8) stdout ---- [INFO] [stdout] error: expected identifier, found `(` [INFO] [stdout] --> src/into_result.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | 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] 22 | 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] 9 | 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] 8 + 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] 14 | 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] 8 + 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] 15 | 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] 14 | 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] 20 | 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] 8 + 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] 21 | 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] 20 | 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] 10 | 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] 15 | 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] 21 | 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] 10 | let a: &[&dyn FileSystemEntity] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 8 + 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] 11 | &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] 8 + 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] 11 | &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] 8 + 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] 11 | &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] 8 + 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] 11 | &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] 8 + 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] 12 | &User(Pictures(&[""])), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 8 + 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] 12 | &User(Pictures(&[""])), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 8 + 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] 13 | &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] 8 + 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] 13 | &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] 8 + 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] 14 | &PathBuf::new(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 + 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/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] 27 | 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] 28 | 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] 28 | / match self { [INFO] [stdout] 29 | | Self::Read | Self::ReadReplace | Self::ReadAppend => true, [INFO] [stdout] 30 | | _ => false, [INFO] [stdout] 31 | | } [INFO] [stdout] | |_^ expected `()`, found `bool` [INFO] [stdout] | [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 31 | }; [INFO] [stdout] | + [INFO] [stdout] help: try adding a return type [INFO] [stdout] | [INFO] [stdout] 27 | 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] 29 | 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] 29 | 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] 29 | 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/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] 50 | 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] 50 | 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] 49 + 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] 53 | 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] ---- 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] 294 | 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] [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.47s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "b005ba6880f324e205d4f63baa773e92ebea8d47379e1335418c36a2c869b2b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b005ba6880f324e205d4f63baa773e92ebea8d47379e1335418c36a2c869b2b5", kill_on_drop: false }` [INFO] [stdout] b005ba6880f324e205d4f63baa773e92ebea8d47379e1335418c36a2c869b2b5