[INFO] cloning repository https://github.com/mariosangiorgio/rulox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mariosangiorgio/rulox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmariosangiorgio%2Frulox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmariosangiorgio%2Frulox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9e9e44f1143aa74b62e43452a35cd4786aecabcf [INFO] testing mariosangiorgio/rulox against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmariosangiorgio%2Frulox" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mariosangiorgio/rulox [INFO] finished tweaking git repo https://github.com/mariosangiorgio/rulox [INFO] tweaked toml for git repo https://github.com/mariosangiorgio/rulox written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mariosangiorgio/rulox on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mariosangiorgio/rulox 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0277d23746b5c247ec3beb08306212e032a1e69c682ad93a02b6012a410aea18 [INFO] running `Command { std: "docker" "start" "-a" "0277d23746b5c247ec3beb08306212e032a1e69c682ad93a02b6012a410aea18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0277d23746b5c247ec3beb08306212e032a1e69c682ad93a02b6012a410aea18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0277d23746b5c247ec3beb08306212e032a1e69c682ad93a02b6012a410aea18", kill_on_drop: false }` [INFO] [stdout] 0277d23746b5c247ec3beb08306212e032a1e69c682ad93a02b6012a410aea18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f16a2085b1f9743d4290ddd22a5a6ce645786ef9953eb47f3582be965c0c63b [INFO] running `Command { std: "docker" "start" "-a" "2f16a2085b1f9743d4290ddd22a5a6ce645786ef9953eb47f3582be965c0c63b", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling proc-macro2 v0.4.20 [INFO] [stderr] Compiling num-derive v0.2.4 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling itertools v0.8.0 [INFO] [stderr] Compiling quote v0.6.8 [INFO] [stderr] Compiling syn v0.15.14 [INFO] [stderr] Compiling rulox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/frontend/scanner.rs:156:58 [INFO] [stdout] | [INFO] [stdout] 156 | self.current_position.increment_column();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | try!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/treewalk/interpreter.rs:301:52 [INFO] [stdout] | [INFO] [stdout] 301 | fn interpret(&self, environment: &Environment, &LexicalScopes) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &LexicalScopes` [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)]` (part of `#[warn(rust_2018_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:357:33 [INFO] [stdout] | [INFO] [stdout] 357 | let value = try!(s.value.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:419:21 [INFO] [stdout] | [INFO] [stdout] 419 | let value = try!(self.right.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:436:20 [INFO] [stdout] | [INFO] [stdout] 436 | let left = try!(self.left.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 437 | let right = try!(self.right.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:488:28 [INFO] [stdout] | [INFO] [stdout] 488 | let left = try!(self.left.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:496:28 [INFO] [stdout] | [INFO] [stdout] 496 | let left = try!(self.left.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:565:34 [INFO] [stdout] | [INFO] [stdout] 565 | let result = try!(statement.execute(&environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:573:33 [INFO] [stdout] | [INFO] [stdout] 573 | let condition = try!{c.condition.interpret(environment, scopes) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:582:33 [INFO] [stdout] | [INFO] [stdout] 582 | let condition = try!{c.condition.interpret(environment, scopes) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:591:23 [INFO] [stdout] | [INFO] [stdout] 591 | while try!{l.condition.interpret(environment, scopes) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:594:21 [INFO] [stdout] | [INFO] [stdout] 594 | try!{l.body.execute(environment, scopes)}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:610:37 [INFO] [stdout] | [INFO] [stdout] 610 | let value = try!(superclass.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | fn resolve(&self, &mut LexicalScopesResolver) -> Result<(), LexicalScopesResolutionError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut LexicalScopesResolver` [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] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:149:21 [INFO] [stdout] | [INFO] [stdout] 149 | try!(statement.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | try!(resolver.declare(*identifier)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | try!(resolver.declare(*identifier)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | try!(initializer.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | try!(resolver.declare(c.name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:173:21 [INFO] [stdout] | [INFO] [stdout] 173 | try!(superclass.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | try!(method.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 270 | try!(e.callee.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:272:21 [INFO] [stdout] | [INFO] [stdout] 272 | try!(argument.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:277:17 [INFO] [stdout] | [INFO] [stdout] 277 | try!(g.instance.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:281:17 [INFO] [stdout] | [INFO] [stdout] 281 | try!(s.value.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:282:17 [INFO] [stdout] | [INFO] [stdout] 282 | try!(s.instance.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 294 | try!{self.rvalue.resolve(resolver)}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | try!(resolver.declare(self.name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:315:9 [INFO] [stdout] | [INFO] [stdout] 315 | try!(self.body.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | try!(resolver.declare(*argument)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/treewalk/parser.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/treewalk/parser.rs:315:10 [INFO] [stdout] | [INFO] [stdout] 315 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/treewalk/parser.rs:385:10 [INFO] [stdout] | [INFO] [stdout] 385 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/parser.rs:950:9 [INFO] [stdout] | [INFO] [stdout] 950 | try!(consume_expected_token!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/parser.rs:976:9 [INFO] [stdout] | [INFO] [stdout] 976 | try!(consume_expected_token!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | try!(writeln!(out, "== {} ==", name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | try!(write!(out, "{:04}", i)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | try!(write!(out, " ")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | try!{disassemble_instruction(instruction, chunk, out)}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | try!(write!(out, " |")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | try!(write!(out, "{:4}", line)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/frontend/scanner.rs:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | fn peek_check(&mut self, check: &Fn(char) -> bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 130 | fn peek_check(&mut self, check: &dyn Fn(char) -> bool) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/frontend/scanner.rs:138:40 [INFO] [stdout] | [INFO] [stdout] 138 | fn peek_check2(&mut self, check1: &Fn(char) -> bool, check2: &Fn(char) -> bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | fn peek_check2(&mut self, check1: &dyn Fn(char) -> bool, check2: &Fn(char) -> bool) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/frontend/scanner.rs:138:67 [INFO] [stdout] | [INFO] [stdout] 138 | fn peek_check2(&mut self, check1: &Fn(char) -> bool, check2: &Fn(char) -> bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | fn peek_check2(&mut self, check1: &Fn(char) -> bool, check2: &dyn Fn(char) -> bool) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/frontend/scanner.rs:171:45 [INFO] [stdout] | [INFO] [stdout] 171 | fn advance_while(&mut self, condition: &Fn(char) -> bool) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 171 | fn advance_while(&mut self, condition: &dyn Fn(char) -> bool) -> () { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:170:27 [INFO] [stdout] | [INFO] [stdout] 170 | parse_statement: &Fn(&mut Parser, &mut Peekable) [INFO] [stdout] | ___________________________^ [INFO] [stdout] 171 | | -> Option>, [INFO] [stdout] | |____________________________________________________^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 170 | parse_statement: &dyn Fn(&mut Parser, &mut Peekable) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:646:24 [INFO] [stdout] | [INFO] [stdout] 646 | map_operator: &Fn(&Token) -> Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 646 | map_operator: &dyn Fn(&Token) -> Option, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:647:31 [INFO] [stdout] | [INFO] [stdout] 647 | parse_subexpression: &Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 647 | parse_subexpression: &dyn Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:688:24 [INFO] [stdout] | [INFO] [stdout] 688 | map_operator: &Fn(&Token) -> Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 688 | map_operator: &dyn Fn(&Token) -> Option, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:689:31 [INFO] [stdout] | [INFO] [stdout] 689 | parse_subexpression: &Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 689 | parse_subexpression: &dyn Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:945:26 [INFO] [stdout] | [INFO] [stdout] 945 | parse_argument: &Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 945 | parse_argument: &dyn Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | InputError(Vec), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LoxError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 - InputError(Vec), [INFO] [stdout] 16 + InputError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | LexicalScopesResolutionError(Vec), [INFO] [stdout] | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LoxError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 - LexicalScopesResolutionError(Vec), [INFO] [stdout] 17 + LexicalScopesResolutionError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | RuntimeError(RuntimeError), [INFO] [stdout] | ------------ ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LoxError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 - RuntimeError(RuntimeError), [INFO] [stdout] 18 + RuntimeError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | ScannerError(scanner::ScannerError), [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `InputError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 - ScannerError(scanner::ScannerError), [INFO] [stdout] 23 + ScannerError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | ParserError(ParseError), [INFO] [stdout] | ----------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `InputError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 - ParserError(ParseError), [INFO] [stdout] 24 + ParserError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lookup` is never used [INFO] [stdout] --> src/treewalk/ast.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl IdentifierMap { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn lookup(&self, identifier: Identifier) -> Option<&String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:291:28 [INFO] [stdout] | [INFO] [stdout] 291 | UnaryMinusTypeMismatch(Value), [INFO] [stdout] | ---------------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 291 - UnaryMinusTypeMismatch(Value), [INFO] [stdout] 291 + UnaryMinusTypeMismatch(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/treewalk/interpreter.rs:292:32 [INFO] [stdout] | [INFO] [stdout] 292 | BinaryOperatorTypeMismatch(BinaryOperator, Value, Value), [INFO] [stdout] | -------------------------- ^^^^^^^^^^^^^^ ^^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 292 - BinaryOperatorTypeMismatch(BinaryOperator, Value, Value), [INFO] [stdout] 292 + BinaryOperatorTypeMismatch((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:293:25 [INFO] [stdout] | [INFO] [stdout] 293 | UndefinedIdentifier(Identifier), [INFO] [stdout] | ------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 293 - UndefinedIdentifier(Identifier), [INFO] [stdout] 293 + UndefinedIdentifier(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:294:17 [INFO] [stdout] | [INFO] [stdout] 294 | NotCallable(Value), [INFO] [stdout] | ----------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 294 - NotCallable(Value), [INFO] [stdout] 294 + NotCallable(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:295:19 [INFO] [stdout] | [INFO] [stdout] 295 | NotAnInstance(Value), [INFO] [stdout] | ------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 295 - NotAnInstance(Value), [INFO] [stdout] 295 + NotAnInstance(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:296:15 [INFO] [stdout] | [INFO] [stdout] 296 | NotAClass(Value), [INFO] [stdout] | --------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 296 - NotAClass(Value), [INFO] [stdout] 296 + NotAClass(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/treewalk/parser.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | UnexpectedToken(Lexeme, Position), [INFO] [stdout] | --------------- ^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 61 - UnexpectedToken(Lexeme, Position), [INFO] [stdout] 61 + UnexpectedToken((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/treewalk/parser.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | Missing(RequiredElement, Lexeme, Position), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 62 - Missing(RequiredElement, Lexeme, Position), [INFO] [stdout] 62 + Missing((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/treewalk/parser.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 63 | InvalidAssignmentTarget(Lexeme, Position), [INFO] [stdout] | ----------------------- ^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 63 - InvalidAssignmentTarget(Lexeme, Position), [INFO] [stdout] 63 + InvalidAssignmentTarget((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PrettyPrint` is never used [INFO] [stdout] --> src/treewalk/pretty_printer.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait PrettyPrint { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/frontend/scanner.rs:122:39 [INFO] [stdout] | [INFO] [stdout] 122 | fn initialize(source: &'a str) -> Scanner { [INFO] [stdout] | -- ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 122 | fn initialize(source: &'a str) -> Scanner<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/vm/compiler.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(PartialEq, PartialOrd, FromPrimitive, ToPrimitive, Clone, Copy)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FROMPRIMITIVE_FOR_PRECEDENCE` [INFO] [stdout] 23 | enum Precedence { [INFO] [stdout] | ---------- `Precedence` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/vm/compiler.rs:22:48 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(PartialEq, PartialOrd, FromPrimitive, ToPrimitive, Clone, Copy)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_TOPRIMITIVE_FOR_PRECEDENCE` [INFO] [stdout] 23 | enum Precedence { [INFO] [stdout] | ---------- `Precedence` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/vm/compiler.rs:64:48 [INFO] [stdout] | [INFO] [stdout] 64 | fn new(chunk: &'a mut Chunk, tokens: I) -> Parser { [INFO] [stdout] | -- ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 64 | fn new(chunk: &'a mut Chunk, tokens: I) -> Parser<'a, I> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.06s [INFO] running `Command { std: "docker" "inspect" "2f16a2085b1f9743d4290ddd22a5a6ce645786ef9953eb47f3582be965c0c63b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f16a2085b1f9743d4290ddd22a5a6ce645786ef9953eb47f3582be965c0c63b", kill_on_drop: false }` [INFO] [stdout] 2f16a2085b1f9743d4290ddd22a5a6ce645786ef9953eb47f3582be965c0c63b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6aef4d37ff63dc23b574b4223df114132136813d244b0b7e3df6cd2e77144c24 [INFO] running `Command { std: "docker" "start" "-a" "6aef4d37ff63dc23b574b4223df114132136813d244b0b7e3df6cd2e77144c24", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling remove_dir_all v0.5.1 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling ucd-util v0.1.1 [INFO] [stderr] Compiling bit-vec v0.5.0 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling byteorder v1.2.7 [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/frontend/scanner.rs:156:58 [INFO] [stdout] | [INFO] [stdout] 156 | self.current_position.increment_column();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | try!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/treewalk/interpreter.rs:301:52 [INFO] [stdout] | [INFO] [stdout] 301 | fn interpret(&self, environment: &Environment, &LexicalScopes) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &LexicalScopes` [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)]` (part of `#[warn(rust_2018_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:357:33 [INFO] [stdout] | [INFO] [stdout] 357 | let value = try!(s.value.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:419:21 [INFO] [stdout] | [INFO] [stdout] 419 | let value = try!(self.right.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:436:20 [INFO] [stdout] | [INFO] [stdout] 436 | let left = try!(self.left.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 437 | let right = try!(self.right.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:488:28 [INFO] [stdout] | [INFO] [stdout] 488 | let left = try!(self.left.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:496:28 [INFO] [stdout] | [INFO] [stdout] 496 | let left = try!(self.left.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:565:34 [INFO] [stdout] | [INFO] [stdout] 565 | let result = try!(statement.execute(&environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:573:33 [INFO] [stdout] | [INFO] [stdout] 573 | let condition = try!{c.condition.interpret(environment, scopes) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:582:33 [INFO] [stdout] | [INFO] [stdout] 582 | let condition = try!{c.condition.interpret(environment, scopes) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:591:23 [INFO] [stdout] | [INFO] [stdout] 591 | while try!{l.condition.interpret(environment, scopes) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:594:21 [INFO] [stdout] | [INFO] [stdout] 594 | try!{l.body.execute(environment, scopes)}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:610:37 [INFO] [stdout] | [INFO] [stdout] 610 | let value = try!(superclass.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | fn resolve(&self, &mut LexicalScopesResolver) -> Result<(), LexicalScopesResolutionError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut LexicalScopesResolver` [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] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:149:21 [INFO] [stdout] | [INFO] [stdout] 149 | try!(statement.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | try!(resolver.declare(*identifier)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | try!(resolver.declare(*identifier)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | try!(initializer.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | try!(resolver.declare(c.name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:173:21 [INFO] [stdout] | [INFO] [stdout] 173 | try!(superclass.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | try!(method.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 270 | try!(e.callee.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:272:21 [INFO] [stdout] | [INFO] [stdout] 272 | try!(argument.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:277:17 [INFO] [stdout] | [INFO] [stdout] 277 | try!(g.instance.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:281:17 [INFO] [stdout] | [INFO] [stdout] 281 | try!(s.value.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:282:17 [INFO] [stdout] | [INFO] [stdout] 282 | try!(s.instance.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 294 | try!{self.rvalue.resolve(resolver)}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | try!(resolver.declare(self.name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:315:9 [INFO] [stdout] | [INFO] [stdout] 315 | try!(self.body.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | try!(resolver.declare(*argument)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/treewalk/parser.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/treewalk/parser.rs:315:10 [INFO] [stdout] | [INFO] [stdout] 315 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/treewalk/parser.rs:385:10 [INFO] [stdout] | [INFO] [stdout] 385 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/parser.rs:950:9 [INFO] [stdout] | [INFO] [stdout] 950 | try!(consume_expected_token!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/parser.rs:976:9 [INFO] [stdout] | [INFO] [stdout] 976 | try!(consume_expected_token!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | try!(writeln!(out, "== {} ==", name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | try!(write!(out, "{:04}", i)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | try!(write!(out, " ")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | try!{disassemble_instruction(instruction, chunk, out)}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | try!(write!(out, " |")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | try!(write!(out, "{:4}", line)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/frontend/scanner.rs:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | fn peek_check(&mut self, check: &Fn(char) -> bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 130 | fn peek_check(&mut self, check: &dyn Fn(char) -> bool) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/frontend/scanner.rs:138:40 [INFO] [stdout] | [INFO] [stdout] 138 | fn peek_check2(&mut self, check1: &Fn(char) -> bool, check2: &Fn(char) -> bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | fn peek_check2(&mut self, check1: &dyn Fn(char) -> bool, check2: &Fn(char) -> bool) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/frontend/scanner.rs:138:67 [INFO] [stdout] | [INFO] [stdout] 138 | fn peek_check2(&mut self, check1: &Fn(char) -> bool, check2: &Fn(char) -> bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | fn peek_check2(&mut self, check1: &Fn(char) -> bool, check2: &dyn Fn(char) -> bool) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/frontend/scanner.rs:171:45 [INFO] [stdout] | [INFO] [stdout] 171 | fn advance_while(&mut self, condition: &Fn(char) -> bool) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 171 | fn advance_while(&mut self, condition: &dyn Fn(char) -> bool) -> () { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:170:27 [INFO] [stdout] | [INFO] [stdout] 170 | parse_statement: &Fn(&mut Parser, &mut Peekable) [INFO] [stdout] | ___________________________^ [INFO] [stdout] 171 | | -> Option>, [INFO] [stdout] | |____________________________________________________^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 170 | parse_statement: &dyn Fn(&mut Parser, &mut Peekable) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:646:24 [INFO] [stdout] | [INFO] [stdout] 646 | map_operator: &Fn(&Token) -> Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 646 | map_operator: &dyn Fn(&Token) -> Option, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:647:31 [INFO] [stdout] | [INFO] [stdout] 647 | parse_subexpression: &Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 647 | parse_subexpression: &dyn Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:688:24 [INFO] [stdout] | [INFO] [stdout] 688 | map_operator: &Fn(&Token) -> Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 688 | map_operator: &dyn Fn(&Token) -> Option, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:689:31 [INFO] [stdout] | [INFO] [stdout] 689 | parse_subexpression: &Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 689 | parse_subexpression: &dyn Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:945:26 [INFO] [stdout] | [INFO] [stdout] 945 | parse_argument: &Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 945 | parse_argument: &dyn Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | InputError(Vec), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LoxError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 - InputError(Vec), [INFO] [stdout] 16 + InputError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | LexicalScopesResolutionError(Vec), [INFO] [stdout] | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LoxError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 - LexicalScopesResolutionError(Vec), [INFO] [stdout] 17 + LexicalScopesResolutionError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | RuntimeError(RuntimeError), [INFO] [stdout] | ------------ ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LoxError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 - RuntimeError(RuntimeError), [INFO] [stdout] 18 + RuntimeError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | ScannerError(scanner::ScannerError), [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `InputError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 - ScannerError(scanner::ScannerError), [INFO] [stdout] 23 + ScannerError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | ParserError(ParseError), [INFO] [stdout] | ----------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `InputError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 - ParserError(ParseError), [INFO] [stdout] 24 + ParserError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lookup` is never used [INFO] [stdout] --> src/treewalk/ast.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl IdentifierMap { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn lookup(&self, identifier: Identifier) -> Option<&String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:291:28 [INFO] [stdout] | [INFO] [stdout] 291 | UnaryMinusTypeMismatch(Value), [INFO] [stdout] | ---------------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 291 - UnaryMinusTypeMismatch(Value), [INFO] [stdout] 291 + UnaryMinusTypeMismatch(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/treewalk/interpreter.rs:292:32 [INFO] [stdout] | [INFO] [stdout] 292 | BinaryOperatorTypeMismatch(BinaryOperator, Value, Value), [INFO] [stdout] | -------------------------- ^^^^^^^^^^^^^^ ^^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 292 - BinaryOperatorTypeMismatch(BinaryOperator, Value, Value), [INFO] [stdout] 292 + BinaryOperatorTypeMismatch((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:293:25 [INFO] [stdout] | [INFO] [stdout] 293 | UndefinedIdentifier(Identifier), [INFO] [stdout] | ------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 293 - UndefinedIdentifier(Identifier), [INFO] [stdout] 293 + UndefinedIdentifier(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:294:17 [INFO] [stdout] | [INFO] [stdout] 294 | NotCallable(Value), [INFO] [stdout] | ----------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 294 - NotCallable(Value), [INFO] [stdout] 294 + NotCallable(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:295:19 [INFO] [stdout] | [INFO] [stdout] 295 | NotAnInstance(Value), [INFO] [stdout] | ------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 295 - NotAnInstance(Value), [INFO] [stdout] 295 + NotAnInstance(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:296:15 [INFO] [stdout] | [INFO] [stdout] 296 | NotAClass(Value), [INFO] [stdout] | --------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 296 - NotAClass(Value), [INFO] [stdout] 296 + NotAClass(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/treewalk/parser.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | UnexpectedToken(Lexeme, Position), [INFO] [stdout] | --------------- ^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 61 - UnexpectedToken(Lexeme, Position), [INFO] [stdout] 61 + UnexpectedToken((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/treewalk/parser.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | Missing(RequiredElement, Lexeme, Position), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 62 - Missing(RequiredElement, Lexeme, Position), [INFO] [stdout] 62 + Missing((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/treewalk/parser.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 63 | InvalidAssignmentTarget(Lexeme, Position), [INFO] [stdout] | ----------------------- ^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 63 - InvalidAssignmentTarget(Lexeme, Position), [INFO] [stdout] 63 + InvalidAssignmentTarget((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PrettyPrint` is never used [INFO] [stdout] --> src/treewalk/pretty_printer.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait PrettyPrint { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/frontend/scanner.rs:122:39 [INFO] [stdout] | [INFO] [stdout] 122 | fn initialize(source: &'a str) -> Scanner { [INFO] [stdout] | -- ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 122 | fn initialize(source: &'a str) -> Scanner<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/vm/compiler.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(PartialEq, PartialOrd, FromPrimitive, ToPrimitive, Clone, Copy)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FROMPRIMITIVE_FOR_PRECEDENCE` [INFO] [stdout] 23 | enum Precedence { [INFO] [stdout] | ---------- `Precedence` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/vm/compiler.rs:22:48 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(PartialEq, PartialOrd, FromPrimitive, ToPrimitive, Clone, Copy)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_TOPRIMITIVE_FOR_PRECEDENCE` [INFO] [stdout] 23 | enum Precedence { [INFO] [stdout] | ---------- `Precedence` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/vm/compiler.rs:64:48 [INFO] [stdout] | [INFO] [stdout] 64 | fn new(chunk: &'a mut Chunk, tokens: I) -> Parser { [INFO] [stdout] | -- ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 64 | fn new(chunk: &'a mut Chunk, tokens: I) -> Parser<'a, I> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling bit-set v0.5.0 [INFO] [stderr] Compiling regex-syntax v0.6.2 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling wait-timeout v0.1.5 [INFO] [stderr] Compiling tempfile v3.0.4 [INFO] [stderr] Compiling rusty-fork v0.2.1 [INFO] [stderr] Compiling proptest v0.8.7 [INFO] [stderr] Compiling rulox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/frontend/scanner.rs:156:58 [INFO] [stdout] | [INFO] [stdout] 156 | self.current_position.increment_column();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | try!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/treewalk/interpreter.rs:301:52 [INFO] [stdout] | [INFO] [stdout] 301 | fn interpret(&self, environment: &Environment, &LexicalScopes) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &LexicalScopes` [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)]` (part of `#[warn(rust_2018_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:357:33 [INFO] [stdout] | [INFO] [stdout] 357 | let value = try!(s.value.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:419:21 [INFO] [stdout] | [INFO] [stdout] 419 | let value = try!(self.right.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:436:20 [INFO] [stdout] | [INFO] [stdout] 436 | let left = try!(self.left.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 437 | let right = try!(self.right.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:488:28 [INFO] [stdout] | [INFO] [stdout] 488 | let left = try!(self.left.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:496:28 [INFO] [stdout] | [INFO] [stdout] 496 | let left = try!(self.left.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:565:34 [INFO] [stdout] | [INFO] [stdout] 565 | let result = try!(statement.execute(&environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:573:33 [INFO] [stdout] | [INFO] [stdout] 573 | let condition = try!{c.condition.interpret(environment, scopes) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:582:33 [INFO] [stdout] | [INFO] [stdout] 582 | let condition = try!{c.condition.interpret(environment, scopes) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:591:23 [INFO] [stdout] | [INFO] [stdout] 591 | while try!{l.condition.interpret(environment, scopes) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:594:21 [INFO] [stdout] | [INFO] [stdout] 594 | try!{l.body.execute(environment, scopes)}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/interpreter.rs:610:37 [INFO] [stdout] | [INFO] [stdout] 610 | let value = try!(superclass.interpret(environment, scopes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/treewalk/interpreter.rs:1040:10 [INFO] [stdout] | [INFO] [stdout] 1040 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | fn resolve(&self, &mut LexicalScopesResolver) -> Result<(), LexicalScopesResolutionError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut LexicalScopesResolver` [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] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:149:21 [INFO] [stdout] | [INFO] [stdout] 149 | try!(statement.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | try!(resolver.declare(*identifier)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | try!(resolver.declare(*identifier)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | try!(initializer.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | try!(resolver.declare(c.name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:173:21 [INFO] [stdout] | [INFO] [stdout] 173 | try!(superclass.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | try!(method.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 270 | try!(e.callee.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:272:21 [INFO] [stdout] | [INFO] [stdout] 272 | try!(argument.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:277:17 [INFO] [stdout] | [INFO] [stdout] 277 | try!(g.instance.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:281:17 [INFO] [stdout] | [INFO] [stdout] 281 | try!(s.value.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:282:17 [INFO] [stdout] | [INFO] [stdout] 282 | try!(s.instance.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 294 | try!{self.rvalue.resolve(resolver)}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | try!(resolver.declare(self.name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:315:9 [INFO] [stdout] | [INFO] [stdout] 315 | try!(self.body.resolve(resolver)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/lexical_scope_resolver.rs:312:13 [INFO] [stdout] | [INFO] [stdout] 312 | try!(resolver.declare(*argument)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/treewalk/parser.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/treewalk/parser.rs:315:10 [INFO] [stdout] | [INFO] [stdout] 315 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/treewalk/parser.rs:385:10 [INFO] [stdout] | [INFO] [stdout] 385 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/parser.rs:950:9 [INFO] [stdout] | [INFO] [stdout] 950 | try!(consume_expected_token!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/treewalk/parser.rs:976:9 [INFO] [stdout] | [INFO] [stdout] 976 | try!(consume_expected_token!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | try!(writeln!(out, "== {} ==", name)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | try!(write!(out, "{:04}", i)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | try!(write!(out, " ")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | try!{disassemble_instruction(instruction, chunk, out)}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | try!(write!(out, " |")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/vm/bytecode.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | try!(write!(out, "{:4}", line)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/frontend/scanner.rs:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | fn peek_check(&mut self, check: &Fn(char) -> bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 130 | fn peek_check(&mut self, check: &dyn Fn(char) -> bool) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/frontend/scanner.rs:138:40 [INFO] [stdout] | [INFO] [stdout] 138 | fn peek_check2(&mut self, check1: &Fn(char) -> bool, check2: &Fn(char) -> bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | fn peek_check2(&mut self, check1: &dyn Fn(char) -> bool, check2: &Fn(char) -> bool) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/frontend/scanner.rs:138:67 [INFO] [stdout] | [INFO] [stdout] 138 | fn peek_check2(&mut self, check1: &Fn(char) -> bool, check2: &Fn(char) -> bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | fn peek_check2(&mut self, check1: &Fn(char) -> bool, check2: &dyn Fn(char) -> bool) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/frontend/scanner.rs:171:45 [INFO] [stdout] | [INFO] [stdout] 171 | fn advance_while(&mut self, condition: &Fn(char) -> bool) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 171 | fn advance_while(&mut self, condition: &dyn Fn(char) -> bool) -> () { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:170:27 [INFO] [stdout] | [INFO] [stdout] 170 | parse_statement: &Fn(&mut Parser, &mut Peekable) [INFO] [stdout] | ___________________________^ [INFO] [stdout] 171 | | -> Option>, [INFO] [stdout] | |____________________________________________________^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 170 | parse_statement: &dyn Fn(&mut Parser, &mut Peekable) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:646:24 [INFO] [stdout] | [INFO] [stdout] 646 | map_operator: &Fn(&Token) -> Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 646 | map_operator: &dyn Fn(&Token) -> Option, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:647:31 [INFO] [stdout] | [INFO] [stdout] 647 | parse_subexpression: &Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 647 | parse_subexpression: &dyn Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:688:24 [INFO] [stdout] | [INFO] [stdout] 688 | map_operator: &Fn(&Token) -> Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 688 | map_operator: &dyn Fn(&Token) -> Option, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:689:31 [INFO] [stdout] | [INFO] [stdout] 689 | parse_subexpression: &Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 689 | parse_subexpression: &dyn Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/treewalk/parser.rs:945:26 [INFO] [stdout] | [INFO] [stdout] 945 | parse_argument: &Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 945 | parse_argument: &dyn Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | InputError(Vec), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LoxError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 - InputError(Vec), [INFO] [stdout] 16 + InputError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | LexicalScopesResolutionError(Vec), [INFO] [stdout] | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LoxError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 - LexicalScopesResolutionError(Vec), [INFO] [stdout] 17 + LexicalScopesResolutionError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | RuntimeError(RuntimeError), [INFO] [stdout] | ------------ ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LoxError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 - RuntimeError(RuntimeError), [INFO] [stdout] 18 + RuntimeError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | ScannerError(scanner::ScannerError), [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `InputError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 - ScannerError(scanner::ScannerError), [INFO] [stdout] 23 + ScannerError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/mod.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | ParserError(ParseError), [INFO] [stdout] | ----------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `InputError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 - ParserError(ParseError), [INFO] [stdout] 24 + ParserError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:291:28 [INFO] [stdout] | [INFO] [stdout] 291 | UnaryMinusTypeMismatch(Value), [INFO] [stdout] | ---------------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 291 - UnaryMinusTypeMismatch(Value), [INFO] [stdout] 291 + UnaryMinusTypeMismatch(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/treewalk/interpreter.rs:292:32 [INFO] [stdout] | [INFO] [stdout] 292 | BinaryOperatorTypeMismatch(BinaryOperator, Value, Value), [INFO] [stdout] | -------------------------- ^^^^^^^^^^^^^^ ^^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 292 - BinaryOperatorTypeMismatch(BinaryOperator, Value, Value), [INFO] [stdout] 292 + BinaryOperatorTypeMismatch((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:293:25 [INFO] [stdout] | [INFO] [stdout] 293 | UndefinedIdentifier(Identifier), [INFO] [stdout] | ------------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 293 - UndefinedIdentifier(Identifier), [INFO] [stdout] 293 + UndefinedIdentifier(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:294:17 [INFO] [stdout] | [INFO] [stdout] 294 | NotCallable(Value), [INFO] [stdout] | ----------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 294 - NotCallable(Value), [INFO] [stdout] 294 + NotCallable(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:295:19 [INFO] [stdout] | [INFO] [stdout] 295 | NotAnInstance(Value), [INFO] [stdout] | ------------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 295 - NotAnInstance(Value), [INFO] [stdout] 295 + NotAnInstance(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/treewalk/interpreter.rs:296:15 [INFO] [stdout] | [INFO] [stdout] 296 | NotAClass(Value), [INFO] [stdout] | --------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 296 - NotAClass(Value), [INFO] [stdout] 296 + NotAClass(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/treewalk/parser.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | UnexpectedToken(Lexeme, Position), [INFO] [stdout] | --------------- ^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 61 - UnexpectedToken(Lexeme, Position), [INFO] [stdout] 61 + UnexpectedToken((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/treewalk/parser.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | Missing(RequiredElement, Lexeme, Position), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 62 - Missing(RequiredElement, Lexeme, Position), [INFO] [stdout] 62 + Missing((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/treewalk/parser.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 63 | InvalidAssignmentTarget(Lexeme, Position), [INFO] [stdout] | ----------------------- ^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 63 - InvalidAssignmentTarget(Lexeme, Position), [INFO] [stdout] 63 + InvalidAssignmentTarget((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/frontend/scanner.rs:122:39 [INFO] [stdout] | [INFO] [stdout] 122 | fn initialize(source: &'a str) -> Scanner { [INFO] [stdout] | -- ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 122 | fn initialize(source: &'a str) -> Scanner<'a> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/treewalk/mod.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | lox_vm.run(input) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 103 | let _ = lox_vm.run(input); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/vm/compiler.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(PartialEq, PartialOrd, FromPrimitive, ToPrimitive, Clone, Copy)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FROMPRIMITIVE_FOR_PRECEDENCE` [INFO] [stdout] 23 | enum Precedence { [INFO] [stdout] | ---------- `Precedence` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/vm/compiler.rs:22:48 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(PartialEq, PartialOrd, FromPrimitive, ToPrimitive, Clone, Copy)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `ToPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_TOPRIMITIVE_FOR_PRECEDENCE` [INFO] [stdout] 23 | enum Precedence { [INFO] [stdout] | ---------- `Precedence` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/vm/compiler.rs:64:48 [INFO] [stdout] | [INFO] [stdout] 64 | fn new(chunk: &'a mut Chunk, tokens: I) -> Parser { [INFO] [stdout] | -- ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 64 | fn new(chunk: &'a mut Chunk, tokens: I) -> Parser<'a, I> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/vm/mod.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | lox_vm.run(input) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 32 | let _ = lox_vm.run(input); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 11.25s [INFO] running `Command { std: "docker" "inspect" "6aef4d37ff63dc23b574b4223df114132136813d244b0b7e3df6cd2e77144c24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6aef4d37ff63dc23b574b4223df114132136813d244b0b7e3df6cd2e77144c24", kill_on_drop: false }` [INFO] [stdout] 6aef4d37ff63dc23b574b4223df114132136813d244b0b7e3df6cd2e77144c24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3ca4a9f8a2dbfe83071936ed8472609661295d703c1e49cd3df7efc34b3500a8 [INFO] running `Command { std: "docker" "start" "-a" "3ca4a9f8a2dbfe83071936ed8472609661295d703c1e49cd3df7efc34b3500a8", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/frontend/scanner.rs:156:58 [INFO] [stderr] | [INFO] [stderr] 156 | self.current_position.increment_column();; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/interpreter.rs:94:21 [INFO] [stderr] | [INFO] [stderr] 94 | try!( [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> src/treewalk/interpreter.rs:301:52 [INFO] [stderr] | [INFO] [stderr] 301 | fn interpret(&self, environment: &Environment, &LexicalScopes) -> Result; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &LexicalScopes` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] = note: `#[warn(anonymous_parameters)]` (part of `#[warn(rust_2018_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/interpreter.rs:357:33 [INFO] [stderr] | [INFO] [stderr] 357 | let value = try!(s.value.interpret(environment, scopes)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/interpreter.rs:419:21 [INFO] [stderr] | [INFO] [stderr] 419 | let value = try!(self.right.interpret(environment, scopes)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/interpreter.rs:436:20 [INFO] [stderr] | [INFO] [stderr] 436 | let left = try!(self.left.interpret(environment, scopes)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/interpreter.rs:437:21 [INFO] [stderr] | [INFO] [stderr] 437 | let right = try!(self.right.interpret(environment, scopes)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/interpreter.rs:488:28 [INFO] [stderr] | [INFO] [stderr] 488 | let left = try!(self.left.interpret(environment, scopes)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/interpreter.rs:496:28 [INFO] [stderr] | [INFO] [stderr] 496 | let left = try!(self.left.interpret(environment, scopes)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/interpreter.rs:565:34 [INFO] [stderr] | [INFO] [stderr] 565 | let result = try!(statement.execute(&environment, scopes)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/interpreter.rs:573:33 [INFO] [stderr] | [INFO] [stderr] 573 | let condition = try!{c.condition.interpret(environment, scopes) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/interpreter.rs:582:33 [INFO] [stderr] | [INFO] [stderr] 582 | let condition = try!{c.condition.interpret(environment, scopes) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/interpreter.rs:591:23 [INFO] [stderr] | [INFO] [stderr] 591 | while try!{l.condition.interpret(environment, scopes) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/interpreter.rs:594:21 [INFO] [stderr] | [INFO] [stderr] 594 | try!{l.body.execute(environment, scopes)}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/interpreter.rs:610:37 [INFO] [stderr] | [INFO] [stderr] 610 | let value = try!(superclass.interpret(environment, scopes)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:35:23 [INFO] [stderr] | [INFO] [stderr] 35 | fn resolve(&self, &mut LexicalScopesResolver) -> Result<(), LexicalScopesResolutionError>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut LexicalScopesResolver` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:149:21 [INFO] [stderr] | [INFO] [stderr] 149 | try!(statement.resolve(resolver)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:155:17 [INFO] [stderr] | [INFO] [stderr] 155 | try!(resolver.declare(*identifier)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:160:17 [INFO] [stderr] | [INFO] [stderr] 160 | try!(resolver.declare(*identifier)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:161:17 [INFO] [stderr] | [INFO] [stderr] 161 | try!(initializer.resolve(resolver)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:167:17 [INFO] [stderr] | [INFO] [stderr] 167 | try!(resolver.declare(c.name)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:173:21 [INFO] [stderr] | [INFO] [stderr] 173 | try!(superclass.resolve(resolver)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:180:21 [INFO] [stderr] | [INFO] [stderr] 180 | try!(method.resolve(resolver)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:270:17 [INFO] [stderr] | [INFO] [stderr] 270 | try!(e.callee.resolve(resolver)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:272:21 [INFO] [stderr] | [INFO] [stderr] 272 | try!(argument.resolve(resolver)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:277:17 [INFO] [stderr] | [INFO] [stderr] 277 | try!(g.instance.resolve(resolver)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:281:17 [INFO] [stderr] | [INFO] [stderr] 281 | try!(s.value.resolve(resolver)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:282:17 [INFO] [stderr] | [INFO] [stderr] 282 | try!(s.instance.resolve(resolver)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:294:9 [INFO] [stderr] | [INFO] [stderr] 294 | try!{self.rvalue.resolve(resolver)}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:306:9 [INFO] [stderr] | [INFO] [stderr] 306 | try!(resolver.declare(self.name)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:315:9 [INFO] [stderr] | [INFO] [stderr] 315 | try!(self.body.resolve(resolver)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/lexical_scope_resolver.rs:312:13 [INFO] [stderr] | [INFO] [stderr] 312 | try!(resolver.declare(*argument)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/treewalk/parser.rs:136:10 [INFO] [stderr] | [INFO] [stderr] 136 | }; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/treewalk/parser.rs:315:10 [INFO] [stderr] | [INFO] [stderr] 315 | }; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/treewalk/parser.rs:385:10 [INFO] [stderr] | [INFO] [stderr] 385 | }; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/parser.rs:950:9 [INFO] [stderr] | [INFO] [stderr] 950 | try!(consume_expected_token!( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/treewalk/parser.rs:976:9 [INFO] [stderr] | [INFO] [stderr] 976 | try!(consume_expected_token!( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/vm/bytecode.rs:142:5 [INFO] [stderr] | [INFO] [stderr] 142 | try!(writeln!(out, "== {} ==", name)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/vm/bytecode.rs:148:9 [INFO] [stderr] | [INFO] [stderr] 148 | try!(write!(out, "{:04}", i)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/vm/bytecode.rs:155:9 [INFO] [stderr] | [INFO] [stderr] 155 | try!(write!(out, " ")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/vm/bytecode.rs:156:9 [INFO] [stderr] | [INFO] [stderr] 156 | try!{disassemble_instruction(instruction, chunk, out)}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/vm/bytecode.rs:150:13 [INFO] [stderr] | [INFO] [stderr] 150 | try!(write!(out, " |")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/vm/bytecode.rs:153:13 [INFO] [stderr] | [INFO] [stderr] 153 | try!(write!(out, "{:4}", line)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/frontend/scanner.rs:130:38 [INFO] [stderr] | [INFO] [stderr] 130 | fn peek_check(&mut self, check: &Fn(char) -> bool) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 130 | fn peek_check(&mut self, check: &dyn Fn(char) -> bool) -> bool { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/frontend/scanner.rs:138:40 [INFO] [stderr] | [INFO] [stderr] 138 | fn peek_check2(&mut self, check1: &Fn(char) -> bool, check2: &Fn(char) -> bool) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 138 | fn peek_check2(&mut self, check1: &dyn Fn(char) -> bool, check2: &Fn(char) -> bool) -> bool { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/frontend/scanner.rs:138:67 [INFO] [stderr] | [INFO] [stderr] 138 | fn peek_check2(&mut self, check1: &Fn(char) -> bool, check2: &Fn(char) -> bool) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 138 | fn peek_check2(&mut self, check1: &Fn(char) -> bool, check2: &dyn Fn(char) -> bool) -> bool { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/frontend/scanner.rs:171:45 [INFO] [stderr] | [INFO] [stderr] 171 | fn advance_while(&mut self, condition: &Fn(char) -> bool) -> () { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 171 | fn advance_while(&mut self, condition: &dyn Fn(char) -> bool) -> () { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/treewalk/parser.rs:170:27 [INFO] [stderr] | [INFO] [stderr] 170 | parse_statement: &Fn(&mut Parser, &mut Peekable) [INFO] [stderr] | ___________________________^ [INFO] [stderr] 171 | | -> Option>, [INFO] [stderr] | |____________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 170 | parse_statement: &dyn Fn(&mut Parser, &mut Peekable) [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/treewalk/parser.rs:646:24 [INFO] [stderr] | [INFO] [stderr] 646 | map_operator: &Fn(&Token) -> Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 646 | map_operator: &dyn Fn(&Token) -> Option, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/treewalk/parser.rs:647:31 [INFO] [stderr] | [INFO] [stderr] 647 | parse_subexpression: &Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 647 | parse_subexpression: &dyn Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/treewalk/parser.rs:688:24 [INFO] [stderr] | [INFO] [stderr] 688 | map_operator: &Fn(&Token) -> Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 688 | map_operator: &dyn Fn(&Token) -> Option, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/treewalk/parser.rs:689:31 [INFO] [stderr] | [INFO] [stderr] 689 | parse_subexpression: &Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 689 | parse_subexpression: &dyn Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/treewalk/parser.rs:945:26 [INFO] [stderr] | [INFO] [stderr] 945 | parse_argument: &Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 945 | parse_argument: &dyn Fn(&mut Parser, &mut Peekable) -> Option>, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/treewalk/mod.rs:16:16 [INFO] [stderr] | [INFO] [stderr] 16 | InputError(Vec), [INFO] [stderr] | ---------- ^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `LoxError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 16 - InputError(Vec), [INFO] [stderr] 16 + InputError(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/treewalk/mod.rs:17:34 [INFO] [stderr] | [INFO] [stderr] 17 | LexicalScopesResolutionError(Vec), [INFO] [stderr] | ---------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `LoxError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 17 - LexicalScopesResolutionError(Vec), [INFO] [stderr] 17 + LexicalScopesResolutionError(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/treewalk/mod.rs:18:18 [INFO] [stderr] | [INFO] [stderr] 18 | RuntimeError(RuntimeError), [INFO] [stderr] | ------------ ^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `LoxError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 18 - RuntimeError(RuntimeError), [INFO] [stderr] 18 + RuntimeError(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/treewalk/mod.rs:23:18 [INFO] [stderr] | [INFO] [stderr] 23 | ScannerError(scanner::ScannerError), [INFO] [stderr] | ------------ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `InputError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 23 - ScannerError(scanner::ScannerError), [INFO] [stderr] 23 + ScannerError(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/treewalk/mod.rs:24:17 [INFO] [stderr] | [INFO] [stderr] 24 | ParserError(ParseError), [INFO] [stderr] | ----------- ^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `InputError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 24 - ParserError(ParseError), [INFO] [stderr] 24 + ParserError(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: method `lookup` is never used [INFO] [stderr] --> src/treewalk/ast.rs:77:12 [INFO] [stderr] | [INFO] [stderr] 54 | impl IdentifierMap { [INFO] [stderr] | ------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 77 | pub fn lookup(&self, identifier: Identifier) -> Option<&String> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/treewalk/interpreter.rs:291:28 [INFO] [stderr] | [INFO] [stderr] 291 | UnaryMinusTypeMismatch(Value), [INFO] [stderr] | ---------------------- ^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 291 - UnaryMinusTypeMismatch(Value), [INFO] [stderr] 291 + UnaryMinusTypeMismatch(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: fields `0`, `1`, and `2` are never read [INFO] [stderr] --> src/treewalk/interpreter.rs:292:32 [INFO] [stderr] | [INFO] [stderr] 292 | BinaryOperatorTypeMismatch(BinaryOperator, Value, Value), [INFO] [stderr] | -------------------------- ^^^^^^^^^^^^^^ ^^^^^ ^^^^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this variant [INFO] [stderr] | [INFO] [stderr] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stderr] | [INFO] [stderr] 292 - BinaryOperatorTypeMismatch(BinaryOperator, Value, Value), [INFO] [stderr] 292 + BinaryOperatorTypeMismatch((), (), ()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/treewalk/interpreter.rs:293:25 [INFO] [stderr] | [INFO] [stderr] 293 | UndefinedIdentifier(Identifier), [INFO] [stderr] | ------------------- ^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 293 - UndefinedIdentifier(Identifier), [INFO] [stderr] 293 + UndefinedIdentifier(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/treewalk/interpreter.rs:294:17 [INFO] [stderr] | [INFO] [stderr] 294 | NotCallable(Value), [INFO] [stderr] | ----------- ^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 294 - NotCallable(Value), [INFO] [stderr] 294 + NotCallable(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/treewalk/interpreter.rs:295:19 [INFO] [stderr] | [INFO] [stderr] 295 | NotAnInstance(Value), [INFO] [stderr] | ------------- ^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 295 - NotAnInstance(Value), [INFO] [stderr] 295 + NotAnInstance(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/treewalk/interpreter.rs:296:15 [INFO] [stderr] | [INFO] [stderr] 296 | NotAClass(Value), [INFO] [stderr] | --------- ^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 296 - NotAClass(Value), [INFO] [stderr] 296 + NotAClass(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: fields `0` and `1` are never read [INFO] [stderr] --> src/treewalk/parser.rs:61:21 [INFO] [stderr] | [INFO] [stderr] 61 | UnexpectedToken(Lexeme, Position), [INFO] [stderr] | --------------- ^^^^^^ ^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this variant [INFO] [stderr] | [INFO] [stderr] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stderr] | [INFO] [stderr] 61 - UnexpectedToken(Lexeme, Position), [INFO] [stderr] 61 + UnexpectedToken((), ()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: fields `0`, `1`, and `2` are never read [INFO] [stderr] --> src/treewalk/parser.rs:62:13 [INFO] [stderr] | [INFO] [stderr] 62 | Missing(RequiredElement, Lexeme, Position), [INFO] [stderr] | ------- ^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this variant [INFO] [stderr] | [INFO] [stderr] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stderr] | [INFO] [stderr] 62 - Missing(RequiredElement, Lexeme, Position), [INFO] [stderr] 62 + Missing((), (), ()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: fields `0` and `1` are never read [INFO] [stderr] --> src/treewalk/parser.rs:63:29 [INFO] [stderr] | [INFO] [stderr] 63 | InvalidAssignmentTarget(Lexeme, Position), [INFO] [stderr] | ----------------------- ^^^^^^ ^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this variant [INFO] [stderr] | [INFO] [stderr] = note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stderr] | [INFO] [stderr] 63 - InvalidAssignmentTarget(Lexeme, Position), [INFO] [stderr] 63 + InvalidAssignmentTarget((), ()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait `PrettyPrint` is never used [INFO] [stderr] --> src/treewalk/pretty_printer.rs:3:11 [INFO] [stderr] | [INFO] [stderr] 3 | pub trait PrettyPrint { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/frontend/scanner.rs:122:39 [INFO] [stderr] | [INFO] [stderr] 122 | fn initialize(source: &'a str) -> Scanner { [INFO] [stderr] | -- ^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is named here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 122 | fn initialize(source: &'a str) -> Scanner<'a> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/vm/compiler.rs:22:33 [INFO] [stderr] | [INFO] [stderr] 22 | #[derive(PartialEq, PartialOrd, FromPrimitive, ToPrimitive, Clone, Copy)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FROMPRIMITIVE_FOR_PRECEDENCE` [INFO] [stderr] 23 | enum Precedence { [INFO] [stderr] | ---------- `Precedence` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/vm/compiler.rs:22:48 [INFO] [stderr] | [INFO] [stderr] 22 | #[derive(PartialEq, PartialOrd, FromPrimitive, ToPrimitive, Clone, Copy)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `ToPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_TOPRIMITIVE_FOR_PRECEDENCE` [INFO] [stderr] 23 | enum Precedence { [INFO] [stderr] | ---------- `Precedence` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `ToPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `ToPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `ToPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/vm/compiler.rs:64:48 [INFO] [stderr] | [INFO] [stderr] 64 | fn new(chunk: &'a mut Chunk, tokens: I) -> Parser { [INFO] [stderr] | -- ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is named here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 64 | fn new(chunk: &'a mut Chunk, tokens: I) -> Parser<'a, I> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `rulox` (lib) generated 73 warnings (run `cargo fix --lib -p rulox` to apply 14 suggestions) [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/treewalk/interpreter.rs:1040:10 [INFO] [stderr] | [INFO] [stderr] 1040 | }; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/treewalk/mod.rs:103:9 [INFO] [stderr] | [INFO] [stderr] 103 | lox_vm.run(input) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 103 | let _ = lox_vm.run(input); [INFO] [stderr] | +++++++ + [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/vm/mod.rs:32:9 [INFO] [stderr] | [INFO] [stderr] 32 | lox_vm.run(input) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 32 | let _ = lox_vm.run(input); [INFO] [stderr] | +++++++ + [INFO] [stderr] [INFO] [stderr] warning: `rulox` (lib test) generated 74 warnings (71 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rulox-d9249128082d4711) [INFO] [stdout] [INFO] [stdout] running 85 tests [INFO] [stdout] test frontend::scanner::tests::expression_with_bad_character ... ok [INFO] [stdout] test frontend::scanner::tests::assignement_with_comment ... ok [INFO] [stdout] test frontend::scanner::tests::multiline_statements ... ok [INFO] [stdout] test frontend::scanner::tests::expression ... ok [INFO] [stdout] test frontend::scanner::tests::expression_with_whitespaces ... ok [INFO] [stdout] test treewalk::interpreter::tests::block_affects_outer_scope ... ok [INFO] [stdout] test treewalk::interpreter::tests::class_constructor ... ok [INFO] [stdout] test treewalk::interpreter::tests::binary_expression_with_mismatching_types ... ok [INFO] [stdout] test treewalk::interpreter::tests::binary ... ok [INFO] [stdout] test frontend::scanner::tests::single_token ... ok [INFO] [stdout] test treewalk::interpreter::tests::error_assigning_undefined_variable ... ok [INFO] [stdout] test treewalk::interpreter::tests::expression_statement ... ok [INFO] [stdout] test treewalk::interpreter::tests::function_declaration_and_call ... ok [INFO] [stdout] test treewalk::interpreter::tests::if_then_else ... ok [INFO] [stdout] test treewalk::interpreter::tests::literal ... ok [INFO] [stdout] test treewalk::interpreter::tests::unary ... ok [INFO] [stdout] test treewalk::interpreter::tests::method_execution ... ok [INFO] [stdout] test treewalk::interpreter::tests::custom_initializer ... ok [INFO] [stdout] test treewalk::interpreter::tests::unary_minus_only_applies_to_numbers ... ok [INFO] [stdout] test treewalk::interpreter::tests::error_accessing_undefined_variable ... ok [INFO] [stdout] test frontend::scanner::tests::statements_with_unterminated_string ... ok [INFO] [stdout] test treewalk::interpreter::tests::variable_definition_with_initializer ... ok [INFO] [stdout] test treewalk::interpreter::tests::while_loop ... ok [INFO] [stdout] test treewalk::lexical_scope_resolver::tests::captured_variable ... ok [INFO] [stdout] test treewalk::lexical_scope_resolver::tests::error_on_local_redeclaration ... ok [INFO] [stdout] test treewalk::lexical_scope_resolver::tests::error_on_return_outside_a_function ... ok [INFO] [stdout] test treewalk::lexical_scope_resolver::tests::error_on_shadowing ... ok [INFO] [stdout] test treewalk::lexical_scope_resolver::tests::global_redeclaration_is_allowed ... ok [INFO] [stdout] test treewalk::lexical_scope_resolver::tests::global_variable ... ok [INFO] [stdout] test treewalk::parser::tests::class ... ok [INFO] [stdout] test treewalk::interpreter::tests::function_declaration_and_call_no_return ... ok [INFO] [stdout] test treewalk::parser::tests::expr_with_equality ... ok [INFO] [stdout] test treewalk::interpreter::tests::grouping ... ok [INFO] [stdout] test treewalk::parser::tests::for_statement ... ok [INFO] [stdout] test treewalk::lexical_scope_resolver::tests::lexical_capture ... ok [INFO] [stdout] test treewalk::parser::tests::assignment ... ok [INFO] [stdout] test treewalk::parser::tests::binary ... ok [INFO] [stdout] test treewalk::interpreter::tests::local_variables_dont_pollute_outer_scope ... ok [INFO] [stdout] test treewalk::interpreter::tests::truth_table ... ok [INFO] [stdout] test treewalk::interpreter::tests::variable_definition ... ok [INFO] [stdout] test treewalk::interpreter::tests::string_concatenation ... ok [INFO] [stdout] test treewalk::interpreter::tests::class_properties ... ok [INFO] [stdout] test treewalk::parser::tests::for_statement_no_condition ... ok [INFO] [stdout] test treewalk::parser::tests::missing_initializer ... ok [INFO] [stdout] test treewalk::parser::tests::function_with_no_arguments ... ok [INFO] [stdout] test treewalk::parser::tests::function_with_one_argument ... ok [INFO] [stdout] test treewalk::parser::tests::for_statement_no_initializer ... ok [INFO] [stdout] test treewalk::parser::tests::function_with_two_arguments ... ok [INFO] [stdout] test treewalk::parser::tests::get ... ok [INFO] [stdout] test treewalk::parser::tests::if_then_statement ... ok [INFO] [stdout] test treewalk::parser::tests::literal ... ok [INFO] [stdout] test treewalk::parser::tests::if_then_else_statement ... ok [INFO] [stdout] test treewalk::interpreter::tests::complex_expression_statement ... ok [INFO] [stdout] test treewalk::parser::tests::multiple_statements ... ok [INFO] [stdout] test treewalk::parser::tests::for_statement_no_increment ... ok [INFO] [stdout] test treewalk::parser::tests::logic ... ok [INFO] [stdout] test treewalk::interpreter::tests::block_variable_dont_escape_scope ... ok [INFO] [stdout] test treewalk::parser::tests::precedence_add_mul ... ok [INFO] [stdout] test treewalk::parser::tests::precedence_mul_add_unary ... ok [INFO] [stdout] test treewalk::parser::tests::precedence_mul_add ... ok [INFO] [stdout] test treewalk::parser::tests::precedence_or_and ... ok [INFO] [stdout] test treewalk::parser::tests::set ... ok [INFO] [stdout] test treewalk::parser::tests::unfinished_block ... ok [INFO] [stdout] test treewalk::parser::tests::unclosed_group ... ok [INFO] [stdout] test treewalk::parser::tests::unopened_group ... ok [INFO] [stdout] test treewalk::parser::tests::wrong_assigment_target ... ok [INFO] [stdout] test treewalk::parser::tests::wrong_variable_declaration_target ... ok [INFO] [stdout] test treewalk::parser::tests::while_statement ... ok [INFO] [stdout] test treewalk::pretty_printer::tests::literal ... ok [INFO] [stdout] test treewalk::pretty_printer::tests::block ... ok [INFO] [stdout] test vm::interpreter::end_to_end_tests::binary ... ok [INFO] [stdout] test vm::interpreter::end_to_end_tests::binary_bool ... ok [INFO] [stdout] test vm::interpreter::end_to_end_tests::complex ... ok [INFO] [stdout] test vm::interpreter::end_to_end_tests::grouping ... ok [INFO] [stdout] test vm::interpreter::end_to_end_tests::unary ... ok [INFO] [stdout] test vm::interpreter::end_to_end_tests::number ... ok [INFO] [stdout] test vm::interpreter::end_to_end_tests::precedence ... ok [INFO] [stdout] test vm::interpreter::end_to_end_tests::unary_bool ... ok [INFO] [stdout] test treewalk::interpreter::tests::to_string ... ok [INFO] [stdout] test treewalk::pretty_printer::tests::complex_expression ... ok [INFO] [stdout] test vm::tests::doesnt_crash ... ignored [INFO] [stdout] test vm::interpreter::tests::trace_doesnt_crash ... ok [INFO] [stdout] test vm::interpreter::tests::interpret_doesnt_crash ... ok [INFO] [stdout] test vm::interpreter::tests::disassemble_doesnt_crash ... ok [INFO] [stderr] Running unittests src/bin/rulox.rs (/opt/rustwide/target/debug/deps/rulox-be3fa6795fd9a156) [INFO] [stderr] Running unittests src/bin/ruloxvm.rs (/opt/rustwide/target/debug/deps/ruloxvm-3c46121116baa318) [INFO] [stdout] test treewalk::tests::doesnt_crash ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 84 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.10s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests rulox [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/frontend/scanner.rs:156:58 [INFO] [stderr] | [INFO] [stderr] 156 | self.current_position.increment_column();; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/treewalk/parser.rs:136:10 [INFO] [stderr] | [INFO] [stderr] 136 | }; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/treewalk/parser.rs:315:10 [INFO] [stderr] | [INFO] [stderr] 315 | }; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/treewalk/parser.rs:385:10 [INFO] [stderr] | [INFO] [stderr] 385 | }; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/vm/bytecode.rs - vm::bytecode::Chunk::add_instruction (line 62) ... ok [INFO] [stdout] test src/vm/bytecode.rs - vm::bytecode::Chunk::add_constant (line 81) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.43s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3ca4a9f8a2dbfe83071936ed8472609661295d703c1e49cd3df7efc34b3500a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ca4a9f8a2dbfe83071936ed8472609661295d703c1e49cd3df7efc34b3500a8", kill_on_drop: false }` [INFO] [stdout] 3ca4a9f8a2dbfe83071936ed8472609661295d703c1e49cd3df7efc34b3500a8