[INFO] cloning repository https://github.com/sepiropht/tiny-compiler-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sepiropht/tiny-compiler-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsepiropht%2Ftiny-compiler-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsepiropht%2Ftiny-compiler-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9447385a0166b11d8f27e36da3eab7a1c40f6b60 [INFO] testing sepiropht/tiny-compiler-rs against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsepiropht%2Ftiny-compiler-rs" "/workspace/builds/worker-73/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-73/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sepiropht/tiny-compiler-rs on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sepiropht/tiny-compiler-rs [INFO] finished tweaking git repo https://github.com/sepiropht/tiny-compiler-rs [INFO] tweaked toml for git repo https://github.com/sepiropht/tiny-compiler-rs written to /workspace/builds/worker-73/source/Cargo.toml [INFO] crate git repo https://github.com/sepiropht/tiny-compiler-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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-73/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f4d3d3796274ebf951613d1b616dd00f214520e7c429e165e42d72e9f333792 [INFO] running `Command { std: "docker" "start" "-a" "2f4d3d3796274ebf951613d1b616dd00f214520e7c429e165e42d72e9f333792", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f4d3d3796274ebf951613d1b616dd00f214520e7c429e165e42d72e9f333792", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f4d3d3796274ebf951613d1b616dd00f214520e7c429e165e42d72e9f333792", kill_on_drop: false }` [INFO] [stdout] 2f4d3d3796274ebf951613d1b616dd00f214520e7c429e165e42d72e9f333792 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-73/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 01441edb8747bc8b733d5428063cfe76e1c0366826809179e97ce24c2d2a6746 [INFO] running `Command { std: "docker" "start" "-a" "01441edb8747bc8b733d5428063cfe76e1c0366826809179e97ce24c2d2a6746", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling tiny-compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{` [INFO] [stdout] --> src/transformer.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | enter(node, parent) { [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{` [INFO] [stdout] --> src/transformer.rs:43:27 [INFO] [stdout] | [INFO] [stdout] 43 | enter(node, parent) { [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{` [INFO] [stdout] --> src/transformer.rs:53:27 [INFO] [stdout] | [INFO] [stdout] 53 | enter(node, parent) { [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct literal body without path [INFO] [stdout] --> src/transformer.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | traverser(&mut ast, { [INFO] [stdout] | _______________________^ [INFO] [stdout] 27 | | [INFO] [stdout] 28 | | // The first visitor method accepts any `NumberLiteral` [INFO] [stdout] 29 | | NumberLiteral: { [INFO] [stdout] ... | [INFO] [stdout] 88 | | } [INFO] [stdout] 89 | | }); [INFO] [stdout] | |___^ [INFO] [stdout] | [INFO] [stdout] help: you might have forgotten to add the struct literal inside the block [INFO] [stdout] | [INFO] [stdout] 26 ~ traverser(&mut ast, { SomeStruct { [INFO] [stdout] 27 | [INFO] [stdout] 28 | // The first visitor method accepts any `NumberLiteral` [INFO] [stdout] 29 | NumberLiteral: { [INFO] [stdout] 30 | // We"ll visit them on enter. [INFO] [stdout] 31 | enter(node, parent) { [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `...`, `..=`, `..`, `=>`, `if`, or `|`, found `.` [INFO] [stdout] --> src/transformer.rs:129:16 [INFO] [stdout] | [INFO] [stdout] 129 | "Program".to_string() => traverse_array(node.body, node), [INFO] [stdout] | ^ expected one of `...`, `..=`, `..`, `=>`, `if`, or `|` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::parser::Ast` [INFO] [stdout] --> src/transformer.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::parser::{Ast, Node}; [INFO] [stdout] | ^^^ no `Ast` in `parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item [INFO] [stdout] --> src/transformer.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | let methods = visitor(node.typ); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use the `|| { ... }` closure form instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `null` in this scope [INFO] [stdout] --> src/transformer.rs:154:22 [INFO] [stdout] | [INFO] [stdout] 154 | traverse_node(ast, null); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::ptr::null; [INFO] [stdout] | [INFO] [stdout] 1 | use std::ptr::null; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | n @ '0'...'9' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:33:33 [INFO] [stdout] | [INFO] [stdout] 33 | Some('0'...'9') => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | i @ 'a'...'z' | i @ 'A'...'Z' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | i @ 'a'...'z' | i @ 'A'...'Z' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:66:33 [INFO] [stdout] | [INFO] [stdout] 66 | Some('a'...'z') | Some('A'...'Z') | Some('_') => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:66:51 [INFO] [stdout] | [INFO] [stdout] 66 | Some('a'...'z') | Some('A'...'Z') | Some('_') => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/transformer.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | if (methods && methods.exit) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 147 - if (methods && methods.exit) { [INFO] [stdout] 147 + if methods && methods.exit { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/transformer.rs:98:39 [INFO] [stdout] | [INFO] [stdout] 98 | fn traverser(ast: &mut Ast, visitor: &FnOnce(String)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 98 - fn traverser(ast: &mut Ast, visitor: &FnOnce(String)) { [INFO] [stdout] 98 + fn traverser(ast: &mut Ast, visitor: &dyn FnOnce(String)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `typ` on type `&Node` [INFO] [stdout] --> src/transformer.rs:112:32 [INFO] [stdout] | [INFO] [stdout] 112 | let methods = visitor(node.typ); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0610]: `bool` is a primitive type and therefore doesn't have fields [INFO] [stdout] --> src/transformer.rs:116:27 [INFO] [stdout] | [INFO] [stdout] 116 | if methods && methods.enter { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `enter` found for type `bool` in the current scope [INFO] [stdout] --> src/transformer.rs:117:15 [INFO] [stdout] | [INFO] [stdout] 117 | methods.enter(node, parent); [INFO] [stdout] | ^^^^^ method not found in `bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `typ` on type `&Node` [INFO] [stdout] --> src/transformer.rs:121:16 [INFO] [stdout] | [INFO] [stdout] 121 | match node.typ { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/transformer.rs:147:5 [INFO] [stdout] | [INFO] [stdout] 121 | / match node.typ { [INFO] [stdout] 122 | | [INFO] [stdout] 123 | | // We"ll start with our top level `Program`. Since Program nodes have a [INFO] [stdout] 124 | | // property named body that has an array of nodes, we will call [INFO] [stdout] ... | [INFO] [stdout] 142 | | } [INFO] [stdout] 143 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 147 | / if (methods && methods.exit) { [INFO] [stdout] 148 | | methods.exit(node, parent); [INFO] [stdout] 149 | | } [INFO] [stdout] | |_____^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0610]: `bool` is a primitive type and therefore doesn't have fields [INFO] [stdout] --> src/transformer.rs:147:28 [INFO] [stdout] | [INFO] [stdout] 147 | if (methods && methods.exit) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `exit` found for type `bool` in the current scope [INFO] [stdout] --> src/transformer.rs:148:15 [INFO] [stdout] | [INFO] [stdout] 148 | methods.exit(node, parent); [INFO] [stdout] | ^^^^ method not found in `bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0434, E0599, E0609, E0610. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tiny-compiler` due to 15 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "01441edb8747bc8b733d5428063cfe76e1c0366826809179e97ce24c2d2a6746", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01441edb8747bc8b733d5428063cfe76e1c0366826809179e97ce24c2d2a6746", kill_on_drop: false }` [INFO] [stdout] 01441edb8747bc8b733d5428063cfe76e1c0366826809179e97ce24c2d2a6746