[INFO] cloning repository https://github.com/kazuhiko-itani/rust-rml-mini [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kazuhiko-itani/rust-rml-mini" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkazuhiko-itani%2Frust-rml-mini", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkazuhiko-itani%2Frust-rml-mini'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bcd1c92c2770859ea92d0e5d828068a0c7fe5c13 [INFO] checking kazuhiko-itani/rust-rml-mini against try#29194e8f603400afdb2f86c9418e9fccb1628ea0 for pr-135331-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkazuhiko-itani%2Frust-rml-mini" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kazuhiko-itani/rust-rml-mini [INFO] finished tweaking git repo https://github.com/kazuhiko-itani/rust-rml-mini [INFO] tweaked toml for git repo https://github.com/kazuhiko-itani/rust-rml-mini written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kazuhiko-itani/rust-rml-mini on toolchain 29194e8f603400afdb2f86c9418e9fccb1628ea0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kazuhiko-itani/rust-rml-mini 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" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "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 kazuhiko-itani/rust-rml-mini against try#29194e8f603400afdb2f86c9418e9fccb1628ea0 for pr-135331-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkazuhiko-itani%2Frust-rml-mini" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kazuhiko-itani/rust-rml-mini [INFO] finished tweaking git repo https://github.com/kazuhiko-itani/rust-rml-mini [INFO] tweaked toml for git repo https://github.com/kazuhiko-itani/rust-rml-mini written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kazuhiko-itani/rust-rml-mini on toolchain 29194e8f603400afdb2f86c9418e9fccb1628ea0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kazuhiko-itani/rust-rml-mini 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" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ba4cf94386116e591aee2cfe040945365edf5f0fcf5361201a4e9d3a0a219212 [INFO] running `Command { std: "docker" "start" "-a" "ba4cf94386116e591aee2cfe040945365edf5f0fcf5361201a4e9d3a0a219212", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ba4cf94386116e591aee2cfe040945365edf5f0fcf5361201a4e9d3a0a219212", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba4cf94386116e591aee2cfe040945365edf5f0fcf5361201a4e9d3a0a219212", kill_on_drop: false }` [INFO] [stdout] ba4cf94386116e591aee2cfe040945365edf5f0fcf5361201a4e9d3a0a219212 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+29194e8f603400afdb2f86c9418e9fccb1628ea0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb6cdace3f0264b4f9636051264dad67570ddb1d0a3d3f3b6884deccf5abeb8e [INFO] running `Command { std: "docker" "start" "-a" "eb6cdace3f0264b4f9636051264dad67570ddb1d0a3d3f3b6884deccf5abeb8e", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex v1.6.0 [INFO] [stderr] Checking rml-mini v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:104:28 [INFO] [stdout] | [INFO] [stdout] 104 | statement.push(self.call_while()); [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^ expected `Vec`, found `()` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] note: method `call_while` modifies its receiver in-place [INFO] [stdout] --> src/parser.rs:104:33 [INFO] [stdout] | [INFO] [stdout] 104 | statement.push(self.call_while()); [INFO] [stdout] | ^^^^^^^^^^ this call modifies `self` in-place [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/29194e8f603400afdb2f86c9418e9fccb1628ea0/library/alloc/src/vec/mod.rs:2488:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:128:32 [INFO] [stdout] | [INFO] [stdout] 128 | fn call_args(&mut self) -> Vec { [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:147:102 [INFO] [stdout] | [INFO] [stdout] 147 | term = [scanner::Token { kind: scanner::TokenKind::Mul, value: '*'.to_string()}, term, self.factor()]; [INFO] [stdout] | ^^^^ expected `Token`, found `Vec` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Token` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:159:20 [INFO] [stdout] | [INFO] [stdout] 153 | fn factor(&mut self) -> Factor { [INFO] [stdout] | ------ expected `Vec` because of return type [INFO] [stdout] ... [INFO] [stdout] 159 | return factor [INFO] [stdout] | ^^^^^^ expected `Vec`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `kind` [INFO] [stdout] --> src/parser.rs:45:90 [INFO] [stdout] | [INFO] [stdout] 30 | fn take(&mut self, kind: Vec) -> scanner::Token { [INFO] [stdout] | ---- move occurs because `kind` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 38 | for k in kind { [INFO] [stdout] | ---- `kind` moved due to this implicit call to `.into_iter()` [INFO] [stdout] ... [INFO] [stdout] 45 | panic!("Syntax Error: expect.kind={:?}, actual.kind={:?}, token.value={:?}", kind, token.kind, token.value); [INFO] [stdout] | ^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `kind` [INFO] [stdout] --> /rustc/29194e8f603400afdb2f86c9418e9fccb1628ea0/library/core/src/iter/traits/collect.rs:310:18 [INFO] [stdout] help: consider iterating over a slice of the `Vec`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 38 | for k in &kind { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rml-mini` (bin "rml-mini") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:104:28 [INFO] [stdout] | [INFO] [stdout] 104 | statement.push(self.call_while()); [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^ expected `Vec`, found `()` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] note: method `call_while` modifies its receiver in-place [INFO] [stdout] --> src/parser.rs:104:33 [INFO] [stdout] | [INFO] [stdout] 104 | statement.push(self.call_while()); [INFO] [stdout] | ^^^^^^^^^^ this call modifies `self` in-place [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/29194e8f603400afdb2f86c9418e9fccb1628ea0/library/alloc/src/vec/mod.rs:2488:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:128:32 [INFO] [stdout] | [INFO] [stdout] 128 | fn call_args(&mut self) -> Vec { [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:147:102 [INFO] [stdout] | [INFO] [stdout] 147 | term = [scanner::Token { kind: scanner::TokenKind::Mul, value: '*'.to_string()}, term, self.factor()]; [INFO] [stdout] | ^^^^ expected `Token`, found `Vec` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `scanner::Token` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:159:20 [INFO] [stdout] | [INFO] [stdout] 153 | fn factor(&mut self) -> Factor { [INFO] [stdout] | ------ expected `Vec` because of return type [INFO] [stdout] ... [INFO] [stdout] 159 | return factor [INFO] [stdout] | ^^^^^^ expected `Vec`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `(scanner::Token, Vec, Vec, Vec>>)` with `(Token, Vec, Vec<_>, Vec, Vec)>>)` [INFO] [stdout] --> src/parser.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | / assert_eq!(actual, vec![ [INFO] [stdout] 192 | | ( [INFO] [stdout] 193 | | scanner::Token {kind: scanner::TokenKind::FuncDef, value: "fn".to_string()}, [INFO] [stdout] 194 | | vec![scanner::Token {kind: scanner::TokenKind::Ident, value: "main".to_string()}], [INFO] [stdout] ... | [INFO] [stdout] 206 | | ]); [INFO] [stdout] | |__________^ no implementation for `(scanner::Token, Vec, Vec, Vec>>) == (Token, Vec, Vec<_>, Vec, Vec)>>)` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<(scanner::Token, Vec, Vec<_>, Vec, Vec)>>)>` is not implemented for `(scanner::Token, Vec, Vec, Vec>>)` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] () [INFO] [stdout] (A, Z, Y, X, W, V, U, T) [INFO] [stdout] (B, A, Z, Y, X, W, V, U, T) [INFO] [stdout] (C, B, A, Z, Y, X, W, V, U, T) [INFO] [stdout] (D, C, B, A, Z, Y, X, W, V, U, T) [INFO] [stdout] (E, D, C, B, A, Z, Y, X, W, V, U, T) [INFO] [stdout] (T,) [INFO] [stdout] (U, T) [INFO] [stdout] and 5 others [INFO] [stdout] = note: required for `Vec<(Token, Vec, Vec, Vec>>)>` to implement `PartialEq, Vec<_>, Vec, Vec)>>)>>` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/rml_mini-60af6c7c13653689.long-type-11373693383998831415.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `kind` [INFO] [stdout] --> src/parser.rs:45:90 [INFO] [stdout] | [INFO] [stdout] 30 | fn take(&mut self, kind: Vec) -> scanner::Token { [INFO] [stdout] | ---- move occurs because `kind` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 38 | for k in kind { [INFO] [stdout] | ---- `kind` moved due to this implicit call to `.into_iter()` [INFO] [stdout] ... [INFO] [stdout] 45 | panic!("Syntax Error: expect.kind={:?}, actual.kind={:?}, token.value={:?}", kind, token.kind, token.value); [INFO] [stdout] | ^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `kind` [INFO] [stdout] --> /rustc/29194e8f603400afdb2f86c9418e9fccb1628ea0/library/core/src/iter/traits/collect.rs:310:18 [INFO] [stdout] help: consider iterating over a slice of the `Vec`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 38 | for k in &kind { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rml-mini` (bin "rml-mini" test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "eb6cdace3f0264b4f9636051264dad67570ddb1d0a3d3f3b6884deccf5abeb8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb6cdace3f0264b4f9636051264dad67570ddb1d0a3d3f3b6884deccf5abeb8e", kill_on_drop: false }` [INFO] [stdout] eb6cdace3f0264b4f9636051264dad67570ddb1d0a3d3f3b6884deccf5abeb8e