[INFO] cloning repository https://github.com/ddsnowboard/json-parser [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ddsnowboard/json-parser" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fddsnowboard%2Fjson-parser", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fddsnowboard%2Fjson-parser'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cd0693865ded30351c866c44b470f02d85a78985 [INFO] checking ddsnowboard/json-parser against try#7b3da9103634dffd4f4365cfd8642427c781d99f+rustflags=-Dinherent-method-on-receiver for 152214-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fddsnowboard%2Fjson-parser" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ddsnowboard/json-parser [INFO] finished tweaking git repo https://github.com/ddsnowboard/json-parser [INFO] tweaked toml for git repo https://github.com/ddsnowboard/json-parser written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ddsnowboard/json-parser on toolchain 7b3da9103634dffd4f4365cfd8642427c781d99f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ddsnowboard/json-parser already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2fd09a7307562b526038e0ad5092867fee9d342f1af8577faa8acf1e3273f1e2 [INFO] running `Command { std: "docker" "start" "-a" "2fd09a7307562b526038e0ad5092867fee9d342f1af8577faa8acf1e3273f1e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2fd09a7307562b526038e0ad5092867fee9d342f1af8577faa8acf1e3273f1e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fd09a7307562b526038e0ad5092867fee9d342f1af8577faa8acf1e3273f1e2", kill_on_drop: false }` [INFO] [stdout] 2fd09a7307562b526038e0ad5092867fee9d342f1af8577faa8acf1e3273f1e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dinherent-method-on-receiver" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 897b57883821043a2237e6acbfa1f269ef173ef48f7362d14c72f2eeab79a3cb [INFO] running `Command { std: "docker" "start" "-a" "897b57883821043a2237e6acbfa1f269ef173ef48f7362d14c72f2eeab79a3cb", kill_on_drop: false }` [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking json_parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item [INFO] [stdout] --> src/ast_parser/mod.rs:211:24 [INFO] [stdout] | [INFO] [stdout] 211 | if escape_char.map(|esc| esc == c).unwrap_or(false) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use the `|| { ... }` closure form instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item [INFO] [stdout] --> src/ast_parser/mod.rs:214:31 [INFO] [stdout] | [INFO] [stdout] 214 | } else if character_set.normal.contains(c) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use the `|| { ... }` closure form instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item [INFO] [stdout] --> src/ast_parser/mod.rs:223:24 [INFO] [stdout] | [INFO] [stdout] 223 | if character_set [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use the `|| { ... }` closure form instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item [INFO] [stdout] --> src/ast_parser/mod.rs:225:32 [INFO] [stdout] | [INFO] [stdout] 225 | .union(character_set.escaped) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use the `|| { ... }` closure form instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `String` [INFO] [stdout] --> src/ast_parser/mod.rs:197:24 [INFO] [stdout] | [INFO] [stdout] 197 | stack: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/7b3da9103634dffd4f4365cfd8642427c781d99f/library/alloc/src/string.rs:353:0 [INFO] [stdout] | [INFO] [stdout] = note: `String` defined here [INFO] [stdout] help: consider importing one of these tuple variants instead [INFO] [stdout] | [INFO] [stdout] 1 + use crate::ASTNode::String; [INFO] [stdout] | [INFO] [stdout] 1 + use crate::JSONElement::String; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item [INFO] [stdout] --> src/ast_parser/mod.rs:211:24 [INFO] [stdout] | [INFO] [stdout] 211 | if escape_char.map(|esc| esc == c).unwrap_or(false) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use the `|| { ... }` closure form instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item [INFO] [stdout] --> src/ast_parser/mod.rs:214:31 [INFO] [stdout] | [INFO] [stdout] 214 | } else if character_set.normal.contains(c) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use the `|| { ... }` closure form instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item [INFO] [stdout] --> src/ast_parser/mod.rs:223:24 [INFO] [stdout] | [INFO] [stdout] 223 | if character_set [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use the `|| { ... }` closure form instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item [INFO] [stdout] --> src/ast_parser/mod.rs:225:32 [INFO] [stdout] | [INFO] [stdout] 225 | .union(character_set.escaped) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use the `|| { ... }` closure form instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `String` [INFO] [stdout] --> src/ast_parser/mod.rs:197:24 [INFO] [stdout] | [INFO] [stdout] 197 | stack: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/7b3da9103634dffd4f4365cfd8642427c781d99f/library/alloc/src/string.rs:353:0 [INFO] [stdout] | [INFO] [stdout] = note: `String` defined here [INFO] [stdout] help: consider importing one of these tuple variants instead [INFO] [stdout] | [INFO] [stdout] 1 + use crate::ASTNode::String; [INFO] [stdout] | [INFO] [stdout] 1 + use crate::JSONElement::String; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddSubtractParser` and `MultiplyDivideParser` [INFO] [stdout] --> src/ast_parser/math/test.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::ast_parser::math::infix::{AddSubtractParser, MultiplyDivideParser}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ast_parser/mod.rs:246:50 [INFO] [stdout] | [INFO] [stdout] 246 | current_state = current_state.transition(c); [INFO] [stdout] | ---------- ^ expected `&char`, found `char` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/ast_parser/mod.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 205 | fn transition(mut self, c: &char) -> Self { [INFO] [stdout] | ^^^^^^^^^^ -------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 246 | current_state = current_state.transition(&c); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `State` [INFO] [stdout] --> src/ast_parser/mod.rs:249:59 [INFO] [stdout] | [INFO] [stdout] 249 | let ast_node = ASTNode::String(if current_state.state == State::Unescaped { [INFO] [stdout] | ------------------- ^^ ---------------- State [INFO] [stdout] | | [INFO] [stdout] | State [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `State` [INFO] [stdout] --> src/ast_parser/mod.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | enum State { [INFO] [stdout] | ^^^^^^^^^^ must implement `PartialEq` [INFO] [stdout] help: consider annotating `State` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 184 + #[derive(PartialEq)] [INFO] [stdout] 185 | enum State { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Owned == Vec` [INFO] [stdout] --> src/ast_parser/mod.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 252 | Cow::Owned(current_state.stack) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `String` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ast_parser/mod.rs:246:50 [INFO] [stdout] | [INFO] [stdout] 246 | current_state = current_state.transition(c); [INFO] [stdout] | ---------- ^ expected `&char`, found `char` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/ast_parser/mod.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 205 | fn transition(mut self, c: &char) -> Self { [INFO] [stdout] | ^^^^^^^^^^ -------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 246 | current_state = current_state.transition(&c); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `State` [INFO] [stdout] --> src/ast_parser/mod.rs:249:59 [INFO] [stdout] | [INFO] [stdout] 249 | let ast_node = ASTNode::String(if current_state.state == State::Unescaped { [INFO] [stdout] | ------------------- ^^ ---------------- State [INFO] [stdout] | | [INFO] [stdout] | State [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq` might be missing for `State` [INFO] [stdout] --> src/ast_parser/mod.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | enum State { [INFO] [stdout] | ^^^^^^^^^^ must implement `PartialEq` [INFO] [stdout] help: consider annotating `State` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 184 + #[derive(PartialEq)] [INFO] [stdout] 185 | enum State { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Owned == Vec` [INFO] [stdout] --> src/ast_parser/mod.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 252 | Cow::Owned(current_state.stack) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `String` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0308, E0369, E0423, E0434. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `json_parser` (bin "json_parser") due to 8 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0271, E0308, E0369, E0423, E0434. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `json_parser` (bin "json_parser" test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "897b57883821043a2237e6acbfa1f269ef173ef48f7362d14c72f2eeab79a3cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "897b57883821043a2237e6acbfa1f269ef173ef48f7362d14c72f2eeab79a3cb", kill_on_drop: false }` [INFO] [stdout] 897b57883821043a2237e6acbfa1f269ef173ef48f7362d14c72f2eeab79a3cb