[INFO] fetching crate r4d 2.1.1... [INFO] testing r4d-2.1.1 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate r4d 2.1.1 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate r4d 2.1.1 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 crates.io crate r4d 2.1.1 [INFO] finished tweaking crates.io crate r4d 2.1.1 [INFO] tweaked toml for crates.io crate r4d 2.1.1 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate crates.io crate r4d 2.1.1 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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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] aa5167e5096875028e2fa67e37c54f9c36b2037084e244e83460298cc0badd7c [INFO] running `Command { std: "docker" "start" "-a" "aa5167e5096875028e2fa67e37c54f9c36b2037084e244e83460298cc0badd7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aa5167e5096875028e2fa67e37c54f9c36b2037084e244e83460298cc0badd7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa5167e5096875028e2fa67e37c54f9c36b2037084e244e83460298cc0badd7c", kill_on_drop: false }` [INFO] [stdout] aa5167e5096875028e2fa67e37c54f9c36b2037084e244e83460298cc0badd7c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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] 35cb2b61c14bde05c0273e1385c2dc9848264e4b2b7683f20f83cb14e074f9cc [INFO] running `Command { std: "docker" "start" "-a" "35cb2b61c14bde05c0273e1385c2dc9848264e4b2b7683f20f83cb14e074f9cc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling serde_derive v1.0.127 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling thiserror-impl v1.0.26 [INFO] [stderr] Compiling thiserror v1.0.26 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling r4d v2.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `std::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/deterred_map.rs:28:52 [INFO] [stdout] | [INFO] [stdout] 28 | let mut map = HashMap::from_iter(IntoIter::new([ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/function_map.rs:63:52 [INFO] [stdout] | [INFO] [stdout] 63 | let mut map = HashMap::from_iter(IntoIter::new([ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.06s [INFO] running `Command { std: "docker" "inspect" "35cb2b61c14bde05c0273e1385c2dc9848264e4b2b7683f20f83cb14e074f9cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35cb2b61c14bde05c0273e1385c2dc9848264e4b2b7683f20f83cb14e074f9cc", kill_on_drop: false }` [INFO] [stdout] 35cb2b61c14bde05c0273e1385c2dc9848264e4b2b7683f20f83cb14e074f9cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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] bdb7498fc3286fb34dcf3162dde884610a6c0a413a4b0400433b678fcb6d982e [INFO] running `Command { std: "docker" "start" "-a" "bdb7498fc3286fb34dcf3162dde884610a6c0a413a4b0400433b678fcb6d982e", kill_on_drop: false }` [INFO] [stdout] warning: use of deprecated associated function `std::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/deterred_map.rs:28:52 [INFO] [stdout] | [INFO] [stdout] 28 | let mut map = HashMap::from_iter(IntoIter::new([ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/function_map.rs:63:52 [INFO] [stdout] | [INFO] [stdout] 63 | let mut map = HashMap::from_iter(IntoIter::new([ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling r4d v2.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/deterred_map.rs:28:52 [INFO] [stdout] | [INFO] [stdout] 28 | let mut map = HashMap::from_iter(IntoIter::new([ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] --> src/function_map.rs:63:52 [INFO] [stdout] | [INFO] [stdout] 63 | let mut map = HashMap::from_iter(IntoIter::new([ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.86s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/rad-bbf2776d585c970b) [INFO] [stderr] Executable unittests src/bin.rs (/opt/rustwide/target/debug/deps/rad-ac24384c300c0b8a) [INFO] running `Command { std: "docker" "inspect" "bdb7498fc3286fb34dcf3162dde884610a6c0a413a4b0400433b678fcb6d982e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdb7498fc3286fb34dcf3162dde884610a6c0a413a4b0400433b678fcb6d982e", kill_on_drop: false }` [INFO] [stdout] bdb7498fc3286fb34dcf3162dde884610a6c0a413a4b0400433b678fcb6d982e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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] dc7c8a9ffea8a28e70d811fb29d13af47282e8943290d653a024b69cc199de9e [INFO] running `Command { std: "docker" "start" "-a" "dc7c8a9ffea8a28e70d811fb29d13af47282e8943290d653a024b69cc199de9e", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated associated function `std::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stderr] --> src/deterred_map.rs:28:52 [INFO] [stderr] | [INFO] [stderr] 28 | let mut map = HashMap::from_iter(IntoIter::new([ [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stderr] --> src/function_map.rs:63:52 [INFO] [stderr] | [INFO] [stderr] 63 | let mut map = HashMap::from_iter(IntoIter::new([ [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `r4d` (lib) generated 2 warnings [INFO] [stderr] warning: `r4d` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rad-bbf2776d585c970b) [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/bin.rs (/opt/rustwide/target/debug/deps/rad-ac24384c300c0b8a) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests rad [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - (line 37) ... FAILED [INFO] [stdout] test src/processor.rs - processor::Processor::add_static_rules (line 770) ... FAILED [INFO] [stdout] test src/processor.rs - processor::Processor::add_runtime_rules (line 722) ... FAILED [INFO] [stdout] test src/processor.rs - processor (line 11) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 37) stdout ---- [INFO] [stdout] error: expected `;`, found `processor` [INFO] [stdout] --> src/lib.rs:43:50 [INFO] [stdout] | [INFO] [stdout] 9 | .write_to_file(Some(Path::new("cache.txt")))? [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 10 | [INFO] [stdout] 11 | processor.from_file(Path::new("input.txt"))?; [INFO] [stdout] | --------- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_37_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::{Processor, RadResult}; [INFO] [stdout] 5 | | use std::path::Path; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 9 | | .write_to_file(Some(Path::new("cache.txt")))? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 12 | | processor.print_result()?; [INFO] [stdout] 13 | | } _doctest_main_src_lib_rs_37_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/lib.rs:45:44 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_37_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::{Processor, RadResult}; [INFO] [stdout] 5 | | use std::path::Path; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 11 | | processor.from_file(Path::new("input.txt"))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | processor.print_result()?; [INFO] [stdout] 13 | | } _doctest_main_src_lib_rs_37_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/lib.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_37_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::{Processor, RadResult}; [INFO] [stdout] 5 | | use std::path::Path; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 12 | | processor.print_result()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 13 | | } _doctest_main_src_lib_rs_37_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] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/processor.rs - processor::Processor::add_static_rules (line 770) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `processor` in this scope [INFO] [stdout] --> src/processor.rs:771:1 [INFO] [stdout] | [INFO] [stdout] 3 | processor.add_static_rules(vec![("macro_name","Macro body without arguments")]); [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/processor.rs - processor::Processor::add_runtime_rules (line 722) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `processor` in this scope [INFO] [stdout] --> src/processor.rs:723:1 [INFO] [stdout] | [INFO] [stdout] 3 | processor.add_runtime_rules(vec![("macro_name","macro_arg1 macro_arg2","macro_body=$macro_arg1()")]); [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/processor.rs - processor (line 11) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rad::MacroType` [INFO] [stdout] --> src/processor.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rad::MacroType; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `MacroType` in the root [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rad::HookType` [INFO] [stdout] --> src/processor.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rad::HookType; // This is behind hook feature [INFO] [stdout] | ^^^^^^^^^^^^^ no `HookType` in the root [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WarningType` [INFO] [stdout] --> src/processor.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 20 | .silent(WarningType::Security) // Silents all warnings [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `WarningType` [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/processor.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 17 | | .custom_macro_char('~')? // use custom macro character [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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/processor.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 18 | | .custom_comment_char('#')? // use custom comment character [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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/processor.rs:34:47 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 26 | | .write_to_file(Some(Path::new("out.txt")))? // default is stdout [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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/processor.rs:35:47 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 27 | | .error_to_file(Some(Path::new("err.txt")))? // default is stderr [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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/processor.rs:38:47 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 30 | | .melt_files(vec![Path::new("source.r4d")])? // Read runtime macros from frozen [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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[E0599]: no method named `debug` found for struct `Processor` in the current scope [INFO] [stdout] --> src/processor.rs:43:6 [INFO] [stdout] | [INFO] [stdout] 35 | .debug(true) // Turn on debug mode [INFO] [stdout] | ^^^^^ method not found in `Processor<'_>` [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/processor.rs:45:27 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 37 | | .diff(DiffOption::All)? // Print diff in final result [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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/processor.rs:56:29 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 48 | | processor.print_permission()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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/processor.rs:66:2 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 58 | | )?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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/processor.rs:69:83 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 61 | | processor.add_runtime_rules(vec![("test","a_src a_link","$a_src() -> $a_link()")])?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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/processor.rs:72:65 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 64 | | processor.add_static_rules(vec![("test","TEST"),("lul","kekw")])?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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/processor.rs:79:47 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 71 | | processor.from_string(r#"$define(test=Test)"#)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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/processor.rs:80:23 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 72 | | processor.from_stdin()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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/processor.rs:81:43 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 73 | | processor.from_file(Path::new("from.txt"))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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/processor.rs:83:47 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 75 | | processor.freeze_to_file(Path::new("out.r4f"))?; // Create frozen file [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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/processor.rs:89:25 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_processor_rs_11_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::RadResult; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::AuthType; [INFO] [stdout] ... | [INFO] [stdout] 81 | | processor.print_result()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 82 | | } _doctest_main_src_processor_rs_11_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 19 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 37) [INFO] [stdout] src/processor.rs - processor (line 11) [INFO] [stdout] src/processor.rs - processor::Processor::add_runtime_rules (line 722) [INFO] [stdout] src/processor.rs - processor::Processor::add_static_rules (line 770) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "dc7c8a9ffea8a28e70d811fb29d13af47282e8943290d653a024b69cc199de9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc7c8a9ffea8a28e70d811fb29d13af47282e8943290d653a024b69cc199de9e", kill_on_drop: false }` [INFO] [stdout] dc7c8a9ffea8a28e70d811fb29d13af47282e8943290d653a024b69cc199de9e