[INFO] cloning repository https://github.com/AntonioCarta/dragon_compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AntonioCarta/dragon_compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAntonioCarta%2Fdragon_compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAntonioCarta%2Fdragon_compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 63446519197371c6da920314494ad8a50b072833 [INFO] checking AntonioCarta/dragon_compiler/63446519197371c6da920314494ad8a50b072833 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAntonioCarta%2Fdragon_compiler" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AntonioCarta/dragon_compiler on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AntonioCarta/dragon_compiler [INFO] finished tweaking git repo https://github.com/AntonioCarta/dragon_compiler [INFO] tweaked toml for git repo https://github.com/AntonioCarta/dragon_compiler written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/AntonioCarta/dragon_compiler 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 041c813d8b91a9cd3535a09b34476aa888858c1c73a190477f1a67745d2c4a66 [INFO] running `Command { std: "docker" "start" "-a" "041c813d8b91a9cd3535a09b34476aa888858c1c73a190477f1a67745d2c4a66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "041c813d8b91a9cd3535a09b34476aa888858c1c73a190477f1a67745d2c4a66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "041c813d8b91a9cd3535a09b34476aa888858c1c73a190477f1a67745d2c4a66", kill_on_drop: false }` [INFO] [stdout] 041c813d8b91a9cd3535a09b34476aa888858c1c73a190477f1a67745d2c4a66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9e510757a22cd6ed59f180b7c5754a024e0adfc7eb5fd867110d68b41d0da62 [INFO] running `Command { std: "docker" "start" "-a" "e9e510757a22cd6ed59f180b7c5754a024e0adfc7eb5fd867110d68b41d0da62", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking mini_compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | '0' ... '9' => self.scan_number(), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | 'a' ... 'z' | [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/lexer.rs:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | 'A' ... 'Z' => self.scan_iden_keyword(), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/parser.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse(& mut Parser) -> Box; [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: & mut Parser` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Scanner` [INFO] [stdout] --> src/test/lexer_test.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use lexer::{Scanner}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/code_generator.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | (n - 1) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 83 - (n - 1) [INFO] [stdout] 83 + n - 1 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddressMode` and `Address` [INFO] [stdout] --> src/interpreter.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use code_generator::{OpCode, AddressMode, AddressCode, Address, IntermediateRepresentation}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around assigned value [INFO] [stdout] --> src/interpreter.rs:33:53 [INFO] [stdout] | [INFO] [stdout] 33 | OpCode::IsPos => self.regs[res] = {if x > 0 {1} else {0}}, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 33 - OpCode::IsPos => self.regs[res] = {if x > 0 {1} else {0}}, [INFO] [stdout] 33 + OpCode::IsPos => self.regs[res] = if x > 0 {1} else {0}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around assigned value [INFO] [stdout] --> src/interpreter.rs:34:53 [INFO] [stdout] | [INFO] [stdout] 34 | OpCode::IsNeg => self.regs[res] = {if x < 0 {1} else {0}}, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 34 - OpCode::IsNeg => self.regs[res] = {if x < 0 {1} else {0}}, [INFO] [stdout] 34 + OpCode::IsNeg => self.regs[res] = if x < 0 {1} else {0}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | '0' ... '9' => self.scan_number(), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | 'a' ... 'z' | [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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/lexer.rs:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | 'A' ... 'Z' => self.scan_iden_keyword(), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/parser.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | fn parse(& mut Parser) -> Box; [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: & mut Parser` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/code_generator.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | (n - 1) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 83 - (n - 1) [INFO] [stdout] 83 + n - 1 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddressMode` and `Address` [INFO] [stdout] --> src/interpreter.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use code_generator::{OpCode, AddressMode, AddressCode, Address, IntermediateRepresentation}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around assigned value [INFO] [stdout] --> src/interpreter.rs:33:53 [INFO] [stdout] | [INFO] [stdout] 33 | OpCode::IsPos => self.regs[res] = {if x > 0 {1} else {0}}, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 33 - OpCode::IsPos => self.regs[res] = {if x > 0 {1} else {0}}, [INFO] [stdout] 33 + OpCode::IsPos => self.regs[res] = if x > 0 {1} else {0}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around assigned value [INFO] [stdout] --> src/interpreter.rs:34:53 [INFO] [stdout] | [INFO] [stdout] 34 | OpCode::IsNeg => self.regs[res] = {if x < 0 {1} else {0}}, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 34 - OpCode::IsNeg => self.regs[res] = {if x < 0 {1} else {0}}, [INFO] [stdout] 34 + OpCode::IsNeg => self.regs[res] = if x < 0 {1} else {0}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lexer.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 147 | impl Scanner { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 148 | pub fn new() -> Scanner { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/code_generator.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct AddressCode { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 59 | id : i32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> src/interpreter.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 4 | code : Vec, [INFO] [stdout] 5 | stack : Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lexer.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 147 | impl Scanner { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 148 | pub fn new() -> Scanner { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SAst` is never used [INFO] [stdout] --> src/test/parser_test.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | type SAst = Box; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/test/parser_test.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn add(e1 : NAst, e2 : NAst) -> NAst { nbox(N::Add(e1, e2)) } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/code_generator.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct AddressCode { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 59 | id : i32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> src/interpreter.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 4 | code : Vec, [INFO] [stdout] 5 | stack : Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] running `Command { std: "docker" "inspect" "e9e510757a22cd6ed59f180b7c5754a024e0adfc7eb5fd867110d68b41d0da62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9e510757a22cd6ed59f180b7c5754a024e0adfc7eb5fd867110d68b41d0da62", kill_on_drop: false }` [INFO] [stdout] e9e510757a22cd6ed59f180b7c5754a024e0adfc7eb5fd867110d68b41d0da62