[INFO] cloning repository https://github.com/ZivoMartin/GParser [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZivoMartin/GParser" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZivoMartin%2FGParser", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZivoMartin%2FGParser'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c9ca70f6b5f9acfc049bc3c9876034d0f4c225d1 [INFO] checking ZivoMartin/GParser against try#c0a9760914bada211f4924ee16d41ae1a366d2ba for pr-148545 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZivoMartin%2FGParser" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ZivoMartin/GParser [INFO] finished tweaking git repo https://github.com/ZivoMartin/GParser [INFO] tweaked toml for git repo https://github.com/ZivoMartin/GParser written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ZivoMartin/GParser on toolchain c0a9760914bada211f4924ee16d41ae1a366d2ba [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c0a9760914bada211f4924ee16d41ae1a366d2ba" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ZivoMartin/GParser 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" "+c0a9760914bada211f4924ee16d41ae1a366d2ba" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking ZivoMartin/GParser against try#c0a9760914bada211f4924ee16d41ae1a366d2ba for pr-148545 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZivoMartin%2FGParser" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ZivoMartin/GParser [INFO] finished tweaking git repo https://github.com/ZivoMartin/GParser [INFO] tweaked toml for git repo https://github.com/ZivoMartin/GParser written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ZivoMartin/GParser on toolchain c0a9760914bada211f4924ee16d41ae1a366d2ba [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c0a9760914bada211f4924ee16d41ae1a366d2ba" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ZivoMartin/GParser 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" "+c0a9760914bada211f4924ee16d41ae1a366d2ba" "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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+c0a9760914bada211f4924ee16d41ae1a366d2ba" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b19922975a47e8881d5a1189ad7d19d974aa07ca9e1e4a010d3c67cf7569fad2 [INFO] running `Command { std: "docker" "start" "-a" "b19922975a47e8881d5a1189ad7d19d974aa07ca9e1e4a010d3c67cf7569fad2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b19922975a47e8881d5a1189ad7d19d974aa07ca9e1e4a010d3c67cf7569fad2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b19922975a47e8881d5a1189ad7d19d974aa07ca9e1e4a010d3c67cf7569fad2", kill_on_drop: false }` [INFO] [stdout] b19922975a47e8881d5a1189ad7d19d974aa07ca9e1e4a010d3c67cf7569fad2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+c0a9760914bada211f4924ee16d41ae1a366d2ba" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53189a4f4bd8c1a0061679d5642ce1fab509bd372359cf725bc91c30f373a1bb [INFO] running `Command { std: "docker" "start" "-a" "53189a4f4bd8c1a0061679d5642ce1fab509bd372359cf725bc91c30f373a1bb", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Checking gparser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: a value of type `Vec>` cannot be built from an iterator over elements of type `&Candidate<'_>` [INFO] [stdout] --> src/main.rs:177:22 [INFO] [stdout] | [INFO] [stdout] 177 | res.values().collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec>` cannot be built from `std::iter::Iterator>` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&Candidate<'_>>` is not implemented for `Vec>` [INFO] [stdout] but trait `FromIterator>` is implemented for it [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/vec/mod.rs:3774:0 [INFO] [stdout] = help: for that trait implementation, expected `Candidate<'_>`, found `&Candidate<'_>` [INFO] [stdout] note: the method call chain might not have had the expected associated types [INFO] [stdout] --> src/main.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 175 | let mut res = HashMap::new(); [INFO] [stdout] | -------------- this expression has type `HashMap>` [INFO] [stdout] 176 | Self::get_candidates_rec(&mut res, Vec::new(), String::new(), Vec::new(), rules, rule); [INFO] [stdout] 177 | res.values().collect() [INFO] [stdout] | ^^^^^^^^ `Iterator::Item` is `&Candidate<'_>` here [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/core/src/iter/traits/iterator.rs:2015:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec>` cannot be built from an iterator over elements of type `&Candidate<'_>` [INFO] [stdout] --> src/main.rs:177:22 [INFO] [stdout] | [INFO] [stdout] 177 | res.values().collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec>` cannot be built from `std::iter::Iterator>` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&Candidate<'_>>` is not implemented for `Vec>` [INFO] [stdout] but trait `FromIterator>` is implemented for it [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/vec/mod.rs:3774:0 [INFO] [stdout] = help: for that trait implementation, expected `Candidate<'_>`, found `&Candidate<'_>` [INFO] [stdout] note: the method call chain might not have had the expected associated types [INFO] [stdout] --> src/main.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 175 | let mut res = HashMap::new(); [INFO] [stdout] | -------------- this expression has type `HashMap>` [INFO] [stdout] 176 | Self::get_candidates_rec(&mut res, Vec::new(), String::new(), Vec::new(), rules, rule); [INFO] [stdout] 177 | res.values().collect() [INFO] [stdout] | ^^^^^^^^ `Iterator::Item` is `&Candidate<'_>` here [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/core/src/iter/traits/iterator.rs:2015:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/main.rs:204:25 [INFO] [stdout] | [INFO] [stdout] 189 | Rule::Atomic(name) => match rules.get(name) { [INFO] [stdout] | --------------------- `match` arms have incompatible types [INFO] [stdout] 190 | Some(the_rule) => { [INFO] [stdout] 191 | / if let Some(candidate) = candidates.get_mut(&the_rule.id()) { [INFO] [stdout] 192 | | candidate.path.push(current_path) [INFO] [stdout] 193 | | } else { [INFO] [stdout] 194 | | Candidate::get_candidates_rec( [INFO] [stdout] ... | [INFO] [stdout] 202 | | } [INFO] [stdout] | |_____________________- this is found to be of type `()` [INFO] [stdout] 203 | } [INFO] [stdout] 204 | None => candidates.insert( [INFO] [stdout] | _________________________^ [INFO] [stdout] 205 | | rule.id(), [INFO] [stdout] 206 | | Candidate { [INFO] [stdout] 207 | | path: vec![current_path], [INFO] [stdout] ... | [INFO] [stdout] 211 | | }, [INFO] [stdout] 212 | | ), [INFO] [stdout] | |_________________^ expected `()`, found `Option>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/main.rs:204:25 [INFO] [stdout] | [INFO] [stdout] 189 | Rule::Atomic(name) => match rules.get(name) { [INFO] [stdout] | --------------------- `match` arms have incompatible types [INFO] [stdout] 190 | Some(the_rule) => { [INFO] [stdout] 191 | / if let Some(candidate) = candidates.get_mut(&the_rule.id()) { [INFO] [stdout] 192 | | candidate.path.push(current_path) [INFO] [stdout] 193 | | } else { [INFO] [stdout] 194 | | Candidate::get_candidates_rec( [INFO] [stdout] ... | [INFO] [stdout] 202 | | } [INFO] [stdout] | |_____________________- this is found to be of type `()` [INFO] [stdout] 203 | } [INFO] [stdout] 204 | None => candidates.insert( [INFO] [stdout] | _________________________^ [INFO] [stdout] 205 | | rule.id(), [INFO] [stdout] 206 | | Candidate { [INFO] [stdout] 207 | | path: vec![current_path], [INFO] [stdout] ... | [INFO] [stdout] 211 | | }, [INFO] [stdout] 212 | | ), [INFO] [stdout] | |_________________^ expected `()`, found `Option>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec<&Rule>` cannot be built from an iterator over elements of type `Vec<&Rule>` [INFO] [stdout] --> src/main.rs:269:45 [INFO] [stdout] | [INFO] [stdout] 269 | self.path.drain(..).collect(), [INFO] [stdout] | ^^^^^^^ value of type `Vec<&Rule>` cannot be built from `std::iter::Iterator>` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator>` is not implemented for `Vec<&Rule>` [INFO] [stdout] but trait `FromIterator<&Rule>` is implemented for it [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/vec/mod.rs:3774:0 [INFO] [stdout] = help: for that trait implementation, expected `&Rule`, found `Vec<&Rule>` [INFO] [stdout] note: the method call chain might not have had the expected associated types [INFO] [stdout] --> src/main.rs:269:35 [INFO] [stdout] | [INFO] [stdout] 269 | self.path.drain(..).collect(), [INFO] [stdout] | --------- ^^^^^^^^^ `Iterator::Item` is `Vec<&Rule>` here [INFO] [stdout] | | [INFO] [stdout] | this expression has type `Vec>` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/core/src/iter/traits/iterator.rs:2015:4 [INFO] [stdout] help: consider removing this method call, as the receiver has type `Vec>` and `Vec>: FromIterator>` trivially holds [INFO] [stdout] | [INFO] [stdout] 269 - self.path.drain(..).collect(), [INFO] [stdout] 269 + self.path.collect(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:263:9 [INFO] [stdout] | [INFO] [stdout] 261 | fn pop_path(&mut self, rules: &'a HashMap>) -> NextCharResponse<'a> { [INFO] [stdout] | -------------------- expected `NextCharResponse<'a>` because of return type [INFO] [stdout] 262 | let mut res = Vec::new(); [INFO] [stdout] 263 | / for path in self.path { [INFO] [stdout] 264 | | match path.pop() { [INFO] [stdout] 265 | | Some(Rule::Chain([_, r2])) => { [INFO] [stdout] 266 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 280 | | } [INFO] [stdout] | |_________^ expected `NextCharResponse<'_>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: `for` loops evaluate to unit type `()` [INFO] [stdout] help: consider returning a value here [INFO] [stdout] | [INFO] [stdout] 280 ~ } [INFO] [stdout] 281 + /* `NextCharResponse<'a>` value */ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec<&Rule>` cannot be built from an iterator over elements of type `Vec<&Rule>` [INFO] [stdout] --> src/main.rs:269:45 [INFO] [stdout] | [INFO] [stdout] 269 | self.path.drain(..).collect(), [INFO] [stdout] | ^^^^^^^ value of type `Vec<&Rule>` cannot be built from `std::iter::Iterator>` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator>` is not implemented for `Vec<&Rule>` [INFO] [stdout] but trait `FromIterator<&Rule>` is implemented for it [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/vec/mod.rs:3774:0 [INFO] [stdout] = help: for that trait implementation, expected `&Rule`, found `Vec<&Rule>` [INFO] [stdout] note: the method call chain might not have had the expected associated types [INFO] [stdout] --> src/main.rs:269:35 [INFO] [stdout] | [INFO] [stdout] 269 | self.path.drain(..).collect(), [INFO] [stdout] | --------- ^^^^^^^^^ `Iterator::Item` is `Vec<&Rule>` here [INFO] [stdout] | | [INFO] [stdout] | this expression has type `Vec>` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/core/src/iter/traits/iterator.rs:2015:4 [INFO] [stdout] help: consider removing this method call, as the receiver has type `Vec>` and `Vec>: FromIterator>` trivially holds [INFO] [stdout] | [INFO] [stdout] 269 - self.path.drain(..).collect(), [INFO] [stdout] 269 + self.path.collect(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:263:9 [INFO] [stdout] | [INFO] [stdout] 261 | fn pop_path(&mut self, rules: &'a HashMap>) -> NextCharResponse<'a> { [INFO] [stdout] | -------------------- expected `NextCharResponse<'a>` because of return type [INFO] [stdout] 262 | let mut res = Vec::new(); [INFO] [stdout] 263 | / for path in self.path { [INFO] [stdout] 264 | | match path.pop() { [INFO] [stdout] 265 | | Some(Rule::Chain([_, r2])) => { [INFO] [stdout] 266 | | let mut map = HashMap::new(); [INFO] [stdout] ... | [INFO] [stdout] 280 | | } [INFO] [stdout] | |_________^ expected `NextCharResponse<'_>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: `for` loops evaluate to unit type `()` [INFO] [stdout] help: consider returning a value here [INFO] [stdout] | [INFO] [stdout] 280 ~ } [INFO] [stdout] 281 + /* `NextCharResponse<'a>` value */ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gparser` (bin "gparser" test) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `gparser` (bin "gparser") due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "53189a4f4bd8c1a0061679d5642ce1fab509bd372359cf725bc91c30f373a1bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53189a4f4bd8c1a0061679d5642ce1fab509bd372359cf725bc91c30f373a1bb", kill_on_drop: false }` [INFO] [stdout] 53189a4f4bd8c1a0061679d5642ce1fab509bd372359cf725bc91c30f373a1bb