[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] b44e378111e99232ae6a0687760cc193caf27463 [INFO] testing Simhyeon/r4d against try#8262275854dc0e5381c9d42d56257d94932c5a87 for pr-90799 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimhyeon%2Fr4d" "/workspace/builds/worker-65/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-65/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Simhyeon/r4d on toolchain 8262275854dc0e5381c9d42d56257d94932c5a87 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "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-65/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" "+8262275854dc0e5381c9d42d56257d94932c5a87" "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-65/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d815b3b26b7c687efd2ce77ea61895c5e61ad63ac09608ee499270e92c10916f [INFO] running `Command { std: "docker" "start" "-a" "d815b3b26b7c687efd2ce77ea61895c5e61ad63ac09608ee499270e92c10916f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d815b3b26b7c687efd2ce77ea61895c5e61ad63ac09608ee499270e92c10916f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d815b3b26b7c687efd2ce77ea61895c5e61ad63ac09608ee499270e92c10916f", kill_on_drop: false }` [INFO] [stdout] d815b3b26b7c687efd2ce77ea61895c5e61ad63ac09608ee499270e92c10916f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd2aed6c62120a4891f39253b2a31ce97a425a1b858ba6857abaf3a6820f2a38 [INFO] running `Command { std: "docker" "start" "-a" "dd2aed6c62120a4891f39253b2a31ce97a425a1b858ba6857abaf3a6820f2a38", 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 unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.127 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling lazy_static v1.4.0 [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.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `keyword_map::KeywordMacro::bind_depre`: Bind is deprecated and will be removed in 2.0 [INFO] [stdout] --> src/keyword_map.rs:19:50 [INFO] [stdout] | [INFO] [stdout] 19 | ("bind".to_owned(), KeywordMacro::bind_depre as KeywordMacType), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `keyword_map::KeywordMacro::global_depre`: Global is deprecated and will be removed in 2.0 [INFO] [stdout] --> src/keyword_map.rs:24:50 [INFO] [stdout] | [INFO] [stdout] 24 | ("global".to_owned(), KeywordMacro::global_depre as KeywordMacType), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/processor.rs:1237:114 [INFO] [stdout] | [INFO] [stdout] 1237 | ...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:1310:146 [INFO] [stdout] | [INFO] [stdout] 1310 | ...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: associated function is never used: `from_str` [INFO] [stdout] --> src/models.rs:293:19 [INFO] [stdout] | [INFO] [stdout] 293 | pub(crate) fn from_str(text : &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 37s [INFO] running `Command { std: "docker" "inspect" "dd2aed6c62120a4891f39253b2a31ce97a425a1b858ba6857abaf3a6820f2a38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd2aed6c62120a4891f39253b2a31ce97a425a1b858ba6857abaf3a6820f2a38", kill_on_drop: false }` [INFO] [stdout] dd2aed6c62120a4891f39253b2a31ce97a425a1b858ba6857abaf3a6820f2a38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b32da76a95c0accd9b8a3ea522924e112654e6dedbc3c577b9188e7a61b5558a [INFO] running `Command { std: "docker" "start" "-a" "b32da76a95c0accd9b8a3ea522924e112654e6dedbc3c577b9188e7a61b5558a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling r4d v1.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `keyword_map::KeywordMacro::bind_depre`: Bind is deprecated and will be removed in 2.0 [INFO] [stdout] --> src/keyword_map.rs:19:50 [INFO] [stdout] | [INFO] [stdout] 19 | ("bind".to_owned(), KeywordMacro::bind_depre as KeywordMacType), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `keyword_map::KeywordMacro::global_depre`: Global is deprecated and will be removed in 2.0 [INFO] [stdout] --> src/keyword_map.rs:24:50 [INFO] [stdout] | [INFO] [stdout] 24 | ("global".to_owned(), KeywordMacro::global_depre as KeywordMacType), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/processor.rs:1237:114 [INFO] [stdout] | [INFO] [stdout] 1237 | ...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:1310:146 [INFO] [stdout] | [INFO] [stdout] 1310 | ...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: associated function is never used: `from_str` [INFO] [stdout] --> src/models.rs:293:19 [INFO] [stdout] | [INFO] [stdout] 293 | pub(crate) fn from_str(text : &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `keyword_map::KeywordMacro::bind_depre`: Bind is deprecated and will be removed in 2.0 [INFO] [stdout] --> src/keyword_map.rs:19:50 [INFO] [stdout] | [INFO] [stdout] 19 | ("bind".to_owned(), KeywordMacro::bind_depre as KeywordMacType), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `keyword_map::KeywordMacro::global_depre`: Global is deprecated and will be removed in 2.0 [INFO] [stdout] --> src/keyword_map.rs:24:50 [INFO] [stdout] | [INFO] [stdout] 24 | ("global".to_owned(), KeywordMacro::global_depre as KeywordMacType), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/processor.rs:1237:114 [INFO] [stdout] | [INFO] [stdout] 1237 | ...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:1310:146 [INFO] [stdout] | [INFO] [stdout] 1310 | ...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: associated function is never used: `from_str` [INFO] [stdout] --> src/models.rs:293:19 [INFO] [stdout] | [INFO] [stdout] 293 | pub(crate) fn from_str(text : &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.98s [INFO] running `Command { std: "docker" "inspect" "b32da76a95c0accd9b8a3ea522924e112654e6dedbc3c577b9188e7a61b5558a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b32da76a95c0accd9b8a3ea522924e112654e6dedbc3c577b9188e7a61b5558a", kill_on_drop: false }` [INFO] [stdout] b32da76a95c0accd9b8a3ea522924e112654e6dedbc3c577b9188e7a61b5558a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-65/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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c407d235d8969c3d5c8144d3782595f050cad50e17f8c1fbc9008083a9aed6ee [INFO] running `Command { std: "docker" "start" "-a" "c407d235d8969c3d5c8144d3782595f050cad50e17f8c1fbc9008083a9aed6ee", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated associated function `keyword_map::KeywordMacro::bind_depre`: Bind is deprecated and will be removed in 2.0 [INFO] [stderr] --> src/keyword_map.rs:19:50 [INFO] [stderr] | [INFO] [stderr] 19 | ("bind".to_owned(), KeywordMacro::bind_depre as KeywordMacType), [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `keyword_map::KeywordMacro::global_depre`: Global is deprecated and will be removed in 2.0 [INFO] [stderr] --> src/keyword_map.rs:24:50 [INFO] [stderr] | [INFO] [stderr] 24 | ("global".to_owned(), KeywordMacro::global_depre as KeywordMacType), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `level` [INFO] [stderr] --> src/processor.rs:1237:114 [INFO] [stderr] | [INFO] [stderr] 1237 | ...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:1310:146 [INFO] [stderr] | [INFO] [stderr] 1310 | ...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: associated function is never used: `from_str` [INFO] [stderr] --> src/models.rs:293:19 [INFO] [stderr] | [INFO] [stderr] 293 | pub(crate) fn from_str(text : &str) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `r4d` (lib) generated 5 warnings [INFO] [stderr] warning: `r4d` (lib test) generated 5 warnings (5 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rad-82967b2b480edba3) [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rad-708405e3c6b52322) [INFO] [stdout] [INFO] [stderr] Doc-tests rad [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.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/processor.rs - processor::Processor::add_static_rules (line 580) ... FAILED [INFO] [stdout] test src/processor.rs - processor::Processor::add_custom_rules (line 551) ... FAILED [INFO] [stdout] test src/basic.rs - basic::MacroType (line 38) ... FAILED [INFO] [stdout] test src/processor.rs - processor::Processor::add_closure_rule (line 530) ... 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/processor.rs - processor::Processor::add_static_rules (line 580) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `processor` in this scope [INFO] [stdout] --> src/processor.rs:581:1 [INFO] [stdout] | [INFO] [stdout] 3 | processor.add_custom_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_custom_rules (line 551) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `processor` in this scope [INFO] [stdout] --> src/processor.rs:552: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/basic.rs - basic::MacroType (line 38) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Processor` in this scope [INFO] [stdout] --> src/basic.rs:39: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:39: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:42: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:51: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:51: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:51: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_closure_rule (line 530) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `processor` in this scope [INFO] [stdout] --> src/processor.rs:531: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: expected `;`, found `processor` [INFO] [stdout] --> src/processor.rs:78:2 [INFO] [stdout] | [INFO] [stdout] 70 | ) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] ... [INFO] [stdout] 73 | processor.add_custom_rules(vec![("test","a_src a_link","$a_src() -> $a_link()")]); [INFO] [stdout] | --------- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `processor` [INFO] [stdout] --> src/processor.rs:84:65 [INFO] [stdout] | [INFO] [stdout] 76 | processor.add_static_rules(vec![("test","TEST"),("lul","kekw")]) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] ... [INFO] [stdout] 80 | processor.from_string(r#"$define(test=Test)"#)?; [INFO] [stdout] | --------- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HookType` [INFO] [stdout] --> src/processor.rs:73:2 [INFO] [stdout] | [INFO] [stdout] 65 | HookType::Macro, // Macro type [INFO] [stdout] | ^^^^^^^^ use of undeclared type `HookType` [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found attribute macro `test` [INFO] [stdout] --> src/processor.rs:59:41 [INFO] [stdout] | [INFO] [stdout] 51 | processor.add_basic_rules(vec![("test", test as MacroType)]); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `trigger_macro` in this scope [INFO] [stdout] --> src/processor.rs:74:2 [INFO] [stdout] | [INFO] [stdout] 66 | trigger_macro, // Macro that triggers [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `hook_div` in this scope [INFO] [stdout] --> src/processor.rs:75:2 [INFO] [stdout] | [INFO] [stdout] 67 | hook_div, // Macro to be executed [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `rad::Processor::comment`: Comment is deprecated and will be removed in 2.0 version. [INFO] [stdout] --> src/processor.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 14 | .comment(CommentType::Start) // Use comment [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/processor.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 14 | .comment(CommentType::Start) // Use comment [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `bool`, found enum `CommentType` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `custom_comment_char` found for enum `Result` in the current scope [INFO] [stdout] --> src/processor.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 16 | .custom_comment_char('#') // use custom comment character [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `Result<&mut Processor, RadError>` [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:31: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] 23 | | .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] 90 | | processor.print_result()?; [INFO] [stdout] 91 | | } _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:32: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] 24 | | .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] 90 | | processor.print_result()?; [INFO] [stdout] 91 | | } _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:33: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] 25 | | .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] 90 | | processor.print_result()?; [INFO] [stdout] 91 | | } _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:55: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] 47 | | processor.print_permission()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 90 | | processor.print_result()?; [INFO] [stdout] 91 | | } _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:88: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] 80 | | processor.from_string(r#"$define(test=Test)"#)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 90 | | processor.print_result()?; [INFO] [stdout] 91 | | } _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:89: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] 81 | | processor.from_stdin()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 90 | | processor.print_result()?; [INFO] [stdout] 91 | | } _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:90: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] 82 | | processor.from_file(Path::new("from.txt"))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 90 | | processor.print_result()?; [INFO] [stdout] 91 | | } _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:92: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] 84 | | 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] 90 | | processor.print_result()?; [INFO] [stdout] 91 | | } _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:98: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] 90 | | processor.print_result()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 91 | | } _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 17 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0423, E0425, 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/basic.rs - basic::MacroType (line 38) [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 530) [INFO] [stdout] src/processor.rs - processor::Processor::add_custom_rules (line 551) [INFO] [stdout] src/processor.rs - processor::Processor::add_static_rules (line 580) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.32s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "c407d235d8969c3d5c8144d3782595f050cad50e17f8c1fbc9008083a9aed6ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c407d235d8969c3d5c8144d3782595f050cad50e17f8c1fbc9008083a9aed6ee", kill_on_drop: false }` [INFO] [stdout] c407d235d8969c3d5c8144d3782595f050cad50e17f8c1fbc9008083a9aed6ee