[INFO] fetching crate r4d 1.1.1... [INFO] testing r4d-1.1.1 against try#722e1797249a965b6335aebd65d777f917e498f1 for pr-91031 [INFO] extracting crate r4d 1.1.1 into /workspace/builds/worker-41/source [INFO] validating manifest of crates.io crate r4d 1.1.1 on toolchain 722e1797249a965b6335aebd65d777f917e498f1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate r4d 1.1.1 [INFO] finished tweaking crates.io crate r4d 1.1.1 [INFO] tweaked toml for crates.io crate r4d 1.1.1 written to /workspace/builds/worker-41/source/Cargo.toml [INFO] crate crates.io crate r4d 1.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lipsum v0.8.0 [INFO] [stderr] Downloaded evalexpr v6.4.0 [INFO] [stderr] Downloaded similar v2.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5010164db61551dee9887351390c8ff8a7ba0fbc6822d1c2631ecc5c54eed090 [INFO] running `Command { std: "docker" "start" "-a" "5010164db61551dee9887351390c8ff8a7ba0fbc6822d1c2631ecc5c54eed090", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5010164db61551dee9887351390c8ff8a7ba0fbc6822d1c2631ecc5c54eed090", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5010164db61551dee9887351390c8ff8a7ba0fbc6822d1c2631ecc5c54eed090", kill_on_drop: false }` [INFO] [stdout] 5010164db61551dee9887351390c8ff8a7ba0fbc6822d1c2631ecc5c54eed090 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa40222c26e0e607a86dadad09b92f80f7eb818f1ba7274559b7ce2fb3a667a2 [INFO] running `Command { std: "docker" "start" "-a" "aa40222c26e0e607a86dadad09b92f80f7eb818f1ba7274559b7ce2fb3a667a2", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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 memchr v2.4.0 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling regex v1.5.4 [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 v1.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/processor.rs:1071:114 [INFO] [stdout] | [INFO] [stdout] 1071 | ...ment, remainder: &mut String, level: usize) -> Result<(), RadError> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_level` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/processor.rs:1141:146 [INFO] [stdout] | [INFO] [stdout] 1141 | ...t String, lexor : &mut Lexor, level: usize) -> Result<(), RadError> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 15.37s [INFO] running `Command { std: "docker" "inspect" "aa40222c26e0e607a86dadad09b92f80f7eb818f1ba7274559b7ce2fb3a667a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa40222c26e0e607a86dadad09b92f80f7eb818f1ba7274559b7ce2fb3a667a2", kill_on_drop: false }` [INFO] [stdout] aa40222c26e0e607a86dadad09b92f80f7eb818f1ba7274559b7ce2fb3a667a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6c2b20ad7760e809e52ad97345c65fcbf9e8782334602481bca512a1f6013964 [INFO] running `Command { std: "docker" "start" "-a" "6c2b20ad7760e809e52ad97345c65fcbf9e8782334602481bca512a1f6013964", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/processor.rs:1071:114 [INFO] [stdout] | [INFO] [stdout] 1071 | ...ment, remainder: &mut String, level: usize) -> Result<(), RadError> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_level` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/processor.rs:1141:146 [INFO] [stdout] | [INFO] [stdout] 1141 | ...t String, lexor : &mut Lexor, level: usize) -> Result<(), RadError> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling r4d v1.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/processor.rs:1071:114 [INFO] [stdout] | [INFO] [stdout] 1071 | ...ment, remainder: &mut String, level: usize) -> Result<(), RadError> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_level` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/processor.rs:1141:146 [INFO] [stdout] | [INFO] [stdout] 1141 | ...t String, lexor : &mut Lexor, level: usize) -> Result<(), RadError> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.93s [INFO] running `Command { std: "docker" "inspect" "6c2b20ad7760e809e52ad97345c65fcbf9e8782334602481bca512a1f6013964", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c2b20ad7760e809e52ad97345c65fcbf9e8782334602481bca512a1f6013964", kill_on_drop: false }` [INFO] [stdout] 6c2b20ad7760e809e52ad97345c65fcbf9e8782334602481bca512a1f6013964 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 197e6effec216c10a54b4b8394e3347aae4e9f7820220a1758aaff199ae5d38e [INFO] running `Command { std: "docker" "start" "-a" "197e6effec216c10a54b4b8394e3347aae4e9f7820220a1758aaff199ae5d38e", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `level` [INFO] [stderr] --> src/processor.rs:1071:114 [INFO] [stderr] | [INFO] [stderr] 1071 | ...ment, remainder: &mut String, level: usize) -> Result<(), RadError> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_level` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `level` [INFO] [stderr] --> src/processor.rs:1141:146 [INFO] [stderr] | [INFO] [stderr] 1141 | ...t String, lexor : &mut Lexor, level: usize) -> Result<(), RadError> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_level` [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.04s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rad-fa3dcbf0e884bdf2) [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rad-ac8733f5df981c05) [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 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests rad [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/basic.rs - basic::MacroType (line 36) ... FAILED [INFO] [stdout] test src/processor.rs - processor::Processor::add_custom_rules (line 481) ... FAILED [INFO] [stdout] test src/processor.rs - processor::Processor::add_closure_rule (line 460) ... FAILED [INFO] [stdout] test src/lib.rs - (line 33) ... FAILED [INFO] [stdout] test src/processor.rs - processor (line 11) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/basic.rs - basic::MacroType (line 36) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Processor` in this scope [INFO] [stdout] --> src/basic.rs:37:51 [INFO] [stdout] | [INFO] [stdout] 3 | fn demo(args: &str, greedy: bool, processor: &mut Processor) -> Result, RadError> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rad::Processor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RadError` in this scope [INFO] [stdout] --> src/basic.rs:37:88 [INFO] [stdout] | [INFO] [stdout] 3 | fn demo(args: &str, greedy: bool, processor: &mut Processor) -> Result, RadError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use rad::RadError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `this_macro_prints_something` in this scope [INFO] [stdout] --> src/basic.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 6 | if this_macro_prints_something { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `processor` in this scope [INFO] [stdout] --> src/basic.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 15 | processor.add_basic_rules(vec![("test", test as MacroType)]); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found attribute macro `test` [INFO] [stdout] --> src/basic.rs:49:41 [INFO] [stdout] | [INFO] [stdout] 15 | processor.add_basic_rules(vec![("test", test as MacroType)]); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MacroType` in this scope [INFO] [stdout] --> src/basic.rs:49:49 [INFO] [stdout] | [INFO] [stdout] 15 | processor.add_basic_rules(vec![("test", test as MacroType)]); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 | use rad::MacroType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0423, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/processor.rs - processor::Processor::add_custom_rules (line 481) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `processor` in this scope [INFO] [stdout] --> src/processor.rs:482:1 [INFO] [stdout] | [INFO] [stdout] 3 | processor.add_custom_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::Processor::add_closure_rule (line 460) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `processor` in this scope [INFO] [stdout] --> src/processor.rs:461:1 [INFO] [stdout] | [INFO] [stdout] 3 | processor.add_closure_rule( [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 33) 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:40:49 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_33_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::Processor; [INFO] [stdout] 5 | | use std::path::Path; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 10 | | .write_to_file(Some(Path::new("cache.txt")))? [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 14 | | processor.print_result()?; [INFO] [stdout] 15 | | } _doctest_main_src_lib_rs_33_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] note: required by `from_residual` [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:44 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_33_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::Processor; [INFO] [stdout] 5 | | use std::path::Path; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 13 | | processor.from_file(Path::new("input.txt"))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 14 | | processor.print_result()?; [INFO] [stdout] 15 | | } _doctest_main_src_lib_rs_33_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] note: required by `from_residual` [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:44:25 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_33_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use rad::Processor; [INFO] [stdout] 5 | | use std::path::Path; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 14 | | processor.print_result()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 15 | | } _doctest_main_src_lib_rs_33_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] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 (line 11) stdout ---- [INFO] [stdout] error[E0423]: expected value, found attribute macro `test` [INFO] [stdout] --> src/processor.rs:51:41 [INFO] [stdout] | [INFO] [stdout] 43 | processor.add_basic_rules(vec![("test", test as MacroType)]); [INFO] [stdout] | ^^^^ not a value [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:27:53 [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::RadError; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::MacroType; [INFO] [stdout] ... | [INFO] [stdout] 19 | | .custom_rules(Some(vec![Path::new("rule.r4f")]))? // Read from frozen rule files [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 70 | | processor.print_result()?; [INFO] [stdout] 71 | | } _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] note: required by `from_residual` [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:28: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::RadError; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::MacroType; [INFO] [stdout] ... | [INFO] [stdout] 20 | | .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] 70 | | processor.print_result()?; [INFO] [stdout] 71 | | } _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] note: required by `from_residual` [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:29: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::RadError; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::MacroType; [INFO] [stdout] ... | [INFO] [stdout] 21 | | .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] 70 | | processor.print_result()?; [INFO] [stdout] 71 | | } _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] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `debug` found for mutable reference `&mut Processor` in the current scope [INFO] [stdout] --> src/processor.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 28 | .debug(true) // Turn on debug mode [INFO] [stdout] | ^^^^^ method not found in `&mut 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:47: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::RadError; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::MacroType; [INFO] [stdout] ... | [INFO] [stdout] 39 | | processor.print_permission()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 70 | | processor.print_result()?; [INFO] [stdout] 71 | | } _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] note: required by `from_residual` [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:68: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::RadError; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::MacroType; [INFO] [stdout] ... | [INFO] [stdout] 60 | | processor.from_string(r#"$define(test=Test)"#)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 70 | | processor.print_result()?; [INFO] [stdout] 71 | | } _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] note: required by `from_residual` [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: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::RadError; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::MacroType; [INFO] [stdout] ... | [INFO] [stdout] 61 | | processor.from_stdin()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 70 | | processor.print_result()?; [INFO] [stdout] 71 | | } _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] note: required by `from_residual` [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:70: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::RadError; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::MacroType; [INFO] [stdout] ... | [INFO] [stdout] 62 | | processor.from_file(Path::new("from.txt"))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 70 | | processor.print_result()?; [INFO] [stdout] 71 | | } _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] note: required by `from_residual` [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: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::RadError; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::MacroType; [INFO] [stdout] ... | [INFO] [stdout] 64 | | 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] 70 | | processor.print_result()?; [INFO] [stdout] 71 | | } _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] note: required by `from_residual` [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:78: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::RadError; [INFO] [stdout] 5 | | use rad::Processor; [INFO] [stdout] 6 | | use rad::MacroType; [INFO] [stdout] ... | [INFO] [stdout] 70 | | processor.print_result()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 71 | | } _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] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0423, 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/basic.rs - basic::MacroType (line 36) [INFO] [stdout] src/lib.rs - (line 33) [INFO] [stdout] src/processor.rs - processor (line 11) [INFO] [stdout] src/processor.rs - processor::Processor::add_closure_rule (line 460) [INFO] [stdout] src/processor.rs - processor::Processor::add_custom_rules (line 481) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "197e6effec216c10a54b4b8394e3347aae4e9f7820220a1758aaff199ae5d38e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "197e6effec216c10a54b4b8394e3347aae4e9f7820220a1758aaff199ae5d38e", kill_on_drop: false }` [INFO] [stdout] 197e6effec216c10a54b4b8394e3347aae4e9f7820220a1758aaff199ae5d38e