[INFO] cloning repository https://github.com/Simhyeon/r4d [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Simhyeon/r4d" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimhyeon%2Fr4d", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimhyeon%2Fr4d'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dfaca713f79fb8836d0fe2738ad29d0c21c0478c [INFO] testing Simhyeon/r4d against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimhyeon%2Fr4d" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Simhyeon/r4d on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Simhyeon/r4d [INFO] finished tweaking git repo https://github.com/Simhyeon/r4d [INFO] tweaked toml for git repo https://github.com/Simhyeon/r4d written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/Simhyeon/r4d already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/simhyeon/cindex` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lipsum v0.8.0 [INFO] [stderr] Downloaded similar v2.0.0 [INFO] [stderr] Downloaded clap v3.0.3 [INFO] [stderr] Downloaded rad_ext_template v0.1.0 [INFO] [stderr] Downloaded evalexpr v6.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a02afcf8926d0ed2c66d7124a6d38adcf4329ba10d13e0db8352ed1b4adc02c5 [INFO] running `Command { std: "docker" "start" "-a" "a02afcf8926d0ed2c66d7124a6d38adcf4329ba10d13e0db8352ed1b4adc02c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a02afcf8926d0ed2c66d7124a6d38adcf4329ba10d13e0db8352ed1b4adc02c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a02afcf8926d0ed2c66d7124a6d38adcf4329ba10d13e0db8352ed1b4adc02c5", kill_on_drop: false }` [INFO] [stdout] a02afcf8926d0ed2c66d7124a6d38adcf4329ba10d13e0db8352ed1b4adc02c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2c93d009a119fe6b8369af89579ab85d08a721052f1e26e76bf4949d8b10df1e [INFO] running `Command { std: "docker" "start" "-a" "2c93d009a119fe6b8369af89579ab85d08a721052f1e26e76bf4949d8b10df1e", kill_on_drop: false }` [INFO] [stderr] Compiling serde_derive v1.0.127 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.4 [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 36.73s [INFO] running `Command { std: "docker" "inspect" "2c93d009a119fe6b8369af89579ab85d08a721052f1e26e76bf4949d8b10df1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c93d009a119fe6b8369af89579ab85d08a721052f1e26e76bf4949d8b10df1e", kill_on_drop: false }` [INFO] [stdout] 2c93d009a119fe6b8369af89579ab85d08a721052f1e26e76bf4949d8b10df1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 6ccfc14d8613b1fb731e7a8e4397c5905b9e52909e197cc41deb1961f1d4417d [INFO] running `Command { std: "docker" "start" "-a" "6ccfc14d8613b1fb731e7a8e4397c5905b9e52909e197cc41deb1961f1d4417d", kill_on_drop: false }` [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] [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 3.13s [INFO] running `Command { std: "docker" "inspect" "6ccfc14d8613b1fb731e7a8e4397c5905b9e52909e197cc41deb1961f1d4417d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ccfc14d8613b1fb731e7a8e4397c5905b9e52909e197cc41deb1961f1d4417d", kill_on_drop: false }` [INFO] [stdout] 6ccfc14d8613b1fb731e7a8e4397c5905b9e52909e197cc41deb1961f1d4417d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e3861f14798a06b293021c134a6d233a9e3d9a39a1dd3c8dfcc53b45610bbca3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e3861f14798a06b293021c134a6d233a9e3d9a39a1dd3c8dfcc53b45610bbca3", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] warning: use of deprecated associated function `std::array::IntoIter::::new`: use `IntoIterator::into_iter` instead [INFO] [stdout] running 0 tests [INFO] [stderr] --> src/deterred_map.rs:28:52 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] 28 | let mut map = HashMap::from_iter(IntoIter::new([ [INFO] [stdout] [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.11s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rad-853d58a3fab201f8) [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rad-d14ed72590e9dec8) [INFO] [stderr] Doc-tests rad [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] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/processor.rs - processor::Processor::add_static_rules (line 770) ... FAILED [INFO] [stdout] test src/lib.rs - (line 37) ... 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/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/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_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.74s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "e3861f14798a06b293021c134a6d233a9e3d9a39a1dd3c8dfcc53b45610bbca3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3861f14798a06b293021c134a6d233a9e3d9a39a1dd3c8dfcc53b45610bbca3", kill_on_drop: false }` [INFO] [stdout] e3861f14798a06b293021c134a6d233a9e3d9a39a1dd3c8dfcc53b45610bbca3